Path: utzoo!attcan!uunet!husc6!mailrus!tut.cis.ohio-state.edu!ukma!psuvm.bitnet!gfx From: GFX@PSUVM.BITNET Newsgroups: comp.sys.mac.hypercard Subject: Re: HyperCard PopUp menus... Message-ID: <45598GFX@PSUVM> Date: 20 Jun 88 03:59:42 GMT Organization: The Pennsylvania State University - Computation Center Lines: 37 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