🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: comp.sys.next.programmer
3 messages
3 total messages Started by Greg Pal Tue, 22 Dec 1992 15:47
Problems using PopUpLists
#1935
Author: Greg Pal
Date: Tue, 22 Dec 1992 15:47
9 lines
900 bytes
I've been having some problems using PopUpLists.  I have two lists of 4  
items each (the first item in each list can be thought as the default  
value).  I want to have button that will reset my lists to their default  
values.  For example, if the last item of a list were selected, when I  
pressed this button, the default value would be selected and would be the  
title of the list.  I thought that this would be a simple problem to solve  
but I can't find an easy way to do it.

Any help would be greatly appreciated.  Thanks.
Re: Problems using PopUpLists
#1942
Author: William Lewis
Date: Wed, 23 Dec 1992 00:15
22 lines
1827 bytes
gpal@poseidon (Greg Pal) writes:
>I've been having some problems using PopUpLists.  I have two lists of 4  
>items each (the first item in each list can be thought as the default  
>value).  I want to have button that will reset my lists to their default  
>values.  For example, if the last item of a list were selected, when I  
>pressed this button, the default value would be selected and would be the  
>title of the list.  I thought that this would be a simple problem to solve  
>but I can't find an easy way to do it.

When it's not actually popped up, a PopUpList stores its "current selection"
in the title of the button that does the popping-up. When theuser presses
that button, the button causes the popuplist to pop up; the popuplist 
queries the button's title, and searches for this title in its array of 
cells to determine which one to highlight. (If it's not there, it adds 
it --- see the popuplist docs.) To change the current selection, you can 
just use setTitle: on the button.

-- 
email: wiml@u.washington.edu             |  Home:  Seattle, Washington   |
     (William Lewis)                     |  47 41' 15" N   122 42' 58" W | 
NeXTmail: wiml@ingalls.cs.washington.edu `-------------------------------'
        --*-- Member, Coalition to Preserve Semantic Vacuity --*--
Re: Problems using PopUpLists
#1964
Author: Gregory H. Anderson
Date: Thu, 24 Dec 1992 17:42
13 lines
971 bytes
In article <1992Dec22.154754.14860@almserv.uucp> gpal@poseidon (Greg Pal)  
writes:
> I've been having some problems using PopUpLists.

I'd be willing to help, but I need more information. Your address on the  
original posting is bad, and I don't want to waste bandwidth on the Net.  
Please contact me directly with a good email address.

--
Gregory H. Anderson          | Thus spake the master programmer: 
Master Programmer / Manager  | "Let the programmers be many and  
Anderson Financial Systems   | the managers few; then all will be 
greg@afs.com  (Nextmail OK)  | productive." -- Tao of Programming
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