[comp.sys.sun] How to disable frame menu

eswara@deervax.concordia.ca (Srinivas Eswara) (03/31/89)

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@deervax.concordia.ca
Montreal, Canada.