ravindra@gort.cs.buffalo.edu (Ravindra Goonetilleke) (03/23/89)
Could someone please tell me how to disable the frame menus in sunview? (i.e. to disable 'move', 'resize' etc. when running an application) Thanks in advance. Ravindra Ravindra Goonetilleke 423 Bell Hall Phone :636-3065 BITNET : V050pcet@ubvms ravindra@marvin.cs.buffalo.edu
chuck@trantor.harris-atd.com (Chuck Musciano) (03/31/89)
> Could someone please tell me how to disable the frame menus in sunview?
To completely remove the menu, you can just set an empty menu:
window_set(frame, WIN_MENU, menu_create(0));
To remove selected items, use:
Menu m;
m = (Menu) window_get(frame, WIN_MENU);
menu_set(m, MENU_REMOVE, 3);
menu_set(m, MENU_REMOVE, 2);
This removes the "Move" and "Resize" entries from the menu. Notice that I
removed 3 first, since things move up when you remove them, and the first
item is number 1. You don't have to reset the frame menu; the returned
value is a handle for the menu, so the frame retains the menu you are
changing.
Chuck Musciano ARPA : chuck@trantor.harris-atd.com
Harris Corporation Usenet: ...!uunet!x102a!trantor!chuck
PO Box 37, MS 3A/1912 AT&T : (407) 727-6131
Melbourne, FL 32902 FAX : (407) 727-5510