Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!purdue!decwrl!shelby!polya!ali From: ali@polya.Stanford.EDU (Ali T. Ozer) Newsgroups: comp.sys.next Subject: Re: popup menus Message-ID: <9331@polya.Stanford.EDU> Date: 20 May 89 06:11:32 GMT References: <23914@labrea.Stanford.EDU> Sender: Ali T. Ozer Reply-To: aozer@NeXT.com (Ali Ozer) Organization: . Lines: 18 In article <23914@labrea.Stanford.EDU> Dave Combs writes: >Does anyone have any decent suggestions about how to do regular pop-up >menus (without the hack that they have to be part of the "main" menu, and >be accessed through the right mouse button?) I have a large number of >very specific menus, so attaching all of them to the main menu is very >inelegant. You might want to use PopUpLists; they are used in the Page Layout panel, in Interface Builder's project window (under Files), in Icon's compositing mode selection, among other places. They allow you to bring up a list of buttons (essentially a popup menu) on an event; they are usually tied to a button. There isn't any support for creating PopUpLists through Interface Builder; the best way to use them is to create a button in IB, get a handle to it through an outlet, and use NXAttachPopUpList() (I think that's what it's called) to attach a PopUpList to the button. Ali Ozer, NeXT Developer Support aozer@NeXT.com