🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.sys.sun
Article #11833

Re: How to disable the frame menu

#11833
From: Chuck Musciano
Date: Fri, 31 Mar 1989 09:31
23 lines
1361 bytes
> 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
Technical Details
Message-ID: <8903231820.AA13091@trantor.harris-atd.com>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!husc6!rice!sun-spots-request

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!husc6!rice!sun-spots-request
From: chuck@trantor.harris-atd.com (Chuck Musciano)
Newsgroups: comp.sys.sun
Subject: Re: How to disable the frame menu
Keywords: Windows
Message-ID: <8903231820.AA13091@trantor.harris-atd.com>
Date: 31 Mar 89 09:31:06 GMT
Sender: usenet@rice.edu
Organization: Sun-Spots
Lines: 23
Approved: Sun-Spots@rice.edu
Original-Date: Thu, 23 Mar 89 13:20:24 EST
X-Sun-Spots-Digest: Volume 7, Issue 219, message 5 of 16