Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!csd4.milw.wisc.edu!bionet!ames!ncar!husc6!rice!sun-spots-request From: eswara@deervax.concordia.ca (Srinivas Eswara) Newsgroups: comp.sys.sun Subject: Re: How to disable frame menu Keywords: Windows Message-ID: <187*eswara@deervax.concordia.ca> Date: 31 Mar 89 09:10:56 GMT Sender: usenet@rice.edu Organization: Sun-Spots Lines: 19 Approved: Sun-Spots@rice.edu Original-Date: 23 Mar 89 11:52 -0500 X-Sun-Spots-Digest: Volume 7, Issue 219, message 4 of 16 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.