🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: comp.sys.next.programmer
1 messages
1 total messages Started by Gregory H. Anderson Wed, 19 Aug 1992 01:00
Re: Getting a PopUpList's window
#1222
Author: Gregory H. Anderson
Date: Wed, 19 Aug 1992 01:00
40 lines
2647 bytes
In article <Bt05Mv.Mt8@ux1.cso.uiuc.edu> jeffo@ux1.cso.uiuc.edu (J.B.  
Nicholson-Owens) writes:
> One small PopUp problem I haven't seen addressed is having a lot of
> entries in a PopUp or PopDown (whatever those downward expanding PopUp
> menus are called).  There needs to be something that is able to,
> perhaps, scroll the choices up and down the way Mac pull-down menus do
> when the menu is too long to display on the screen.
> 
> Has anything been done in 3.0 to handle this situation?
> 
> I wish that merely using a scrollView were a suitable replacement for
> such problems, but the ability of the PopUp to give an infinite number
> of choices as well as show the chosen one in a very small space and
> almost instantly is *very* handy.  I would hate to have to revert to a
> button bringing up a panel that had a scrollView in it.  That would
> seem so cumbersome to me as a user.

We actually wrote a subclass of TextField called LookupField which solves  
this problem. The LookupField owns a ButtonCell which displays its label  
(non-bordered, so it appears to be a plain old static TextField). When you  
click on the ButtonCell region, a LookupPanel pops up with all acceptable  
values contained in a scrolling Matrix. Just like a PopUpList, this panel  
runs modal until you make a selection or cancel the operation. Our users  
don't find it cumbersome, perhaps because it is well integrated with the  
TextField: The same panel pops up automatically to validate data entry  
directly into the field.

The lookup table values are stored in a group of flat files and attached  
to the LookupField by name. That means you don't need to access the NIB  
file to change the contents of the table, as you would with PopUpLists. It  
also allows lookup tables to be built in-memory on the fly, for non-static  
data. (Yes, I know you can do both of these things with programmatic  
PopUps, but it's a lot more work.) A very convenient and intuitive  
alternative to PopUpLists, which we no longer use.

--
Gregory H. Anderson          | "We're very tolerant around here,
Benevolent Dictator-for-Life |  being only amateurs ourselves."
Anderson Financial Systems   | - Tortoise (Godel, Escher, Bach)
greg@afs.com  (Nextmail OK)  | 
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads