🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.sys.mac
Article #25272

Re: popup menus and other UI stuff

#25272
From: hannon
Date: Wed, 10 Feb 1988 18:29
33 lines
2502 bytes
omh@nancy(Owen Hartnett) writes in comp.sys.mac

>PopUp Menus are implemented in the current System files.  You'll need the
>newest release of LSP so that you can call the routine.  The routine to
>call is:
>	function PopUpMenuSelect(theMenu:menuHandle;
>			top,left:integer; item:integer):longint;
>
>Simply get the Menu first, don't install in menubar, in the above call you'll
>pass it it's menuHandle, top and left are the coordinates of the upper left
>corner of the menu, item is the item number that should start out selected.
>
	One of the things that Owen forgot to mention, that is SO important that
without it your code will not work, is that even if you do not install it in the
menubar, it needs to be inserted into the Mac's MenuList.  You do this using the
InsertMenu command, but instead of passing it a 0 as the beforeID, you pass it
as -1. (This is the same way that Hierarchical menus are installed)

+--------------------------------------------------------------------------+
+                                   |                                      +
+  Leonard Rosenthol                |  USnail:   205 E. Healey  #33        +
+  LazerWare, inc.                  |            Champaign, Il  61820      +
+  GEnie: MACgician                 |                                      +
+  ARPA:  hannon@clio.las.uiuc.edu  |  Bitnet:   3FLOSDQ@UIUCNOSA.BITNET   +
+  {ihnp4|convex|pur-ee}!uiucuxc!clio!hannon                               +
+--------------------------------------------------------------------------+
+ Disclaimer #1: Since I own the company, I can say whatever I want, and   +
+                not be responsible for it!                                +
+                                                                          +
+ Disclaimer #2: Anything I say may be construed as being under the        +
+                jurisdiction of Disclaimer #1                             +
+--------------------------------------------------------------------------+
Technical Details
Message-ID: <17000092@clio>
Path: arc1-ca.pugleaf.net!utzoo!mnetor!uunet!seismo!sundc!pitstop!sun!amdcad!ames!umd5!purdue!i.cc.purdue.edu!j.cc.purdue.edu!pur-ee!uiucdcs!uxc.cso.uiuc.edu!clio!hannon
References: <22634@brunix.UUCP>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!mnetor!uunet!seismo!sundc!pitstop!sun!amdcad!ames!umd5!purdue!i.cc.purdue.edu!j.cc.purdue.edu!pur-ee!uiucdcs!uxc.cso.uiuc.edu!clio!hannon
From: hannon@clio.las.uiuc.edu
Newsgroups: comp.sys.mac
Subject: Re: popup menus and other UI stuff
Message-ID: <17000092@clio>
Date: 10 Feb 88 18:29:00 GMT
References: <22634@brunix.UUCP>
Lines: 33
Nf-ID: #R:brunix.UUCP:22634:clio:17000092:000:1999
Nf-From: clio.las.uiuc.edu!hannon    Feb 10 12:29:00 1988