How to disable the frame menu
Chuck Musciano
chuck at trantor.harris-atd.com
Fri Mar 31 19:31:06 AEST 1989
> 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 at 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
More information about the Comp.sys.sun
mailing list