[comp.sys.mac.hypercard] HyperCard PopUp menus...

GFX@PSUVM.BITNET (06/20/88)

In article <739@cunixc.columbia.edu>, lih@cunixc.columbia.edu (Andrew Lih) says:
>
>Thanks to all those who sent me replies on how to throw up a list for
>the users in HyperCard to use. I got the following suggestions:
>
>  1.  An XCMD called DoList ...
>
>  2.  Another XMCD called PopUp Menu ... [but] you
>      have to dig into ResEdit and acutally add, delete and modify
>      the items in the menu.  This has a great weakness in that you
>      cannot pass the XCMD a parameter list of choices.
>
You've been misinformed regarding the PopUpMenu XCMD.  You actually
define the menu contents within the script that calls PopUpMenu.

From memory, a script may look like:

put "Item1,Item2,Item3,...,ItemK" into Menu
get (Menu,0,the MouseH,the MouseV)
-- "it" now contains your selection, or 0 if none was made

PopUpMenu is a very powerful and flexible XCMD that allows the
creation and management of either standard, or popUp menus.  I
use it routinely, and never bothered to use the MENU resource.
Even better than popUpMenu, however, is the HPopUpMenu XCMD, that
allows the creation of hierarchical popUp menus (1 level).  This
XCMD, also available from Apple's appHyper forum, should solve all
your menu problems.

"En passant" you can check-mark menu items, modify their font styles,
use icons, create line separations, disable items, just like
you'd find in standard applications menus.
-------

Stephane Gauvin : GFX@PSUVM : (814) 237-4979 : Compuserve 73057,1763
Interests: Marketing: New products, Mathematical Models, Game Theory
           Computing: AI, MacIntosh, Hypercard

t-jacobs@utah-cs.UUCP (Tony Jacobs) (06/21/88)

Could some kind soul please post the HPopUpMenu XCMD. Thanks.

-- 
Tony Jacobs * Center for Engineering Design * U of U * t-jacobs@ced.utah.edu

benjamin_kuo@pedro.UUCP (Benjamin Kuo) (06/28/88)

I'd try the UUMUG's library, or call any of the Mac bulletin boards in 
Salt Lake:  I've tried to upload that XCMD around the valley.