How to disable frame menu
Srinivas Eswara
eswara at deervax.concordia.ca
Fri Mar 31 19:10:56 AEST 1989
Ravindra writes about disabling some items of the frame menu. I have
included a piece of code which should solve your problem. Use the number
of the item you want in MENU_NTH_ITEM to disable that item. For ex, the
first menu item CLOSE is number 1.
==================
frame = window_create(NULL, FRAME, 0);
frame_menu = window_get(frame, WIN_MENU);
menu_set(menu_get(frame_menu, MENU_NTH_ITEM, 3),
MENU_INACTIVE, TRUE, 0);
window_set(frame, WIN_MENU, frame_menu, 0);
==================
Hope this helps.
Srinivas Eswara
eswara at deervax.concordia.ca
Montreal, Canada.
More information about the Comp.sys.sun
mailing list