[comp.sys.mac] popup menus and other UI stuff

hannon@clio.las.uiuc.edu (02/11/88)

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                             +
+--------------------------------------------------------------------------+