ftp.nice.ch/peanuts/GeneralData/Usenet/news/1989/CSN-89.tar.gz#/comp-sys-next/1989/May-Jun/popup-menus

This is popup-menus in view mode; [Up]


Date: Sun 18-May-1989 22:23:02 From: Unknown Subject: popup menus 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. Thanks, Dave (combs@sumex-aim.stanford.edu) >From: gerrit@nova.cc.purdue.edu (Gerrit)
Date: Sun 19-May-1989 20:01:17 From: Unknown Subject: Re: popup menus In article <23914@labrea.Stanford.EDU> combs@sumex-aim.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. I have the same problem as Dave. In 0.8, I ended up using modal panels filled with buttons. This caused me lots of fun and laughter in 0.9, since 0.9 forcibly centers modal panels (and causes nested modal panels to be placed so that their top-left corner is approximately 1 screen inch lower and to the right of the previous panel). I eventually created a subclass of panels that has null methods for center: and moveTopLeftTo:: and which get placed where I want them to. However, 0.9 does have two new facilities, see "Buttons That Bring Up Lists" on page 44 of the 0.9 NeXT User's Reference Manual. I'm going to be moving to using them, and may be able to get rid of some of my modal panels. Mark Crispin / 6158 Lariat Loop NE / Bainbridge Island, WA 98110-2020 mrc@CAC.Washington.EDU / MRC@WSMR-SIMTEL20.Army.Mil / (206) 842-2385 Atheist & Proud / 450cc Rebel pilot -- a step up from 250cc's!!! tabesaserarenakerebanaranakattarashii...kisha no kisha ga kisha de kisha-shita sumomo mo momo, momo mo momo, momo ni mo iroiro aru uraniwa ni wa niwa, niwa ni wa niwa niwatori ga iru >From: rmf517@uxf.cso.uiuc.edu
Date: Sun 20-May-1989 06:11:32 From: Unknown Subject: Re: popup menus 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 >From: ali@polya.Stanford.EDU (Ali T. Ozer)

These are the contents of the former NiCE NeXT User Group NeXTSTEP/OpenStep software archive, currently hosted by Marcel Waldvogel and Netfuture.ch.