home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #31 / NN_1992_31.iso / spool / comp / sys / next / programm / 7886 < prev    next >
Encoding:
Text File  |  1992-12-22  |  1.8 KB  |  35 lines

  1. Newsgroups: comp.sys.next.programmer
  2. Path: sparky!uunet!zaphod.mps.ohio-state.edu!rpi!batcomputer!cornell!uw-beaver!news.u.washington.edu!milton!wiml
  3. From: wiml@milton.u.washington.edu (William Lewis)
  4. Subject: Re: Problems using PopUpLists
  5. Message-ID: <wiml.725069706@milton>
  6. Keywords: popuplist PopUpList
  7. Sender: news@u.washington.edu (USENET News System)
  8. Organization: University of Washington
  9. References: <1992Dec22.154754.14860@almserv.uucp>
  10. Date: Wed, 23 Dec 1992 00:15:06 GMT
  11. Lines: 22
  12.  
  13. gpal@poseidon (Greg Pal) writes:
  14. >I've been having some problems using PopUpLists.  I have two lists of 4  
  15. >items each (the first item in each list can be thought as the default  
  16. >value).  I want to have button that will reset my lists to their default  
  17. >values.  For example, if the last item of a list were selected, when I  
  18. >pressed this button, the default value would be selected and would be the  
  19. >title of the list.  I thought that this would be a simple problem to solve  
  20. >but I can't find an easy way to do it.
  21.  
  22. When it's not actually popped up, a PopUpList stores its "current selection"
  23. in the title of the button that does the popping-up. When theuser presses
  24. that button, the button causes the popuplist to pop up; the popuplist 
  25. queries the button's title, and searches for this title in its array of 
  26. cells to determine which one to highlight. (If it's not there, it adds 
  27. it --- see the popuplist docs.) To change the current selection, you can 
  28. just use setTitle: on the button.
  29.  
  30. -- 
  31. email: wiml@u.washington.edu             |  Home:  Seattle, Washington   |
  32.      (William Lewis)                     |  47 41' 15" N   122 42' 58" W | 
  33. NeXTmail: wiml@ingalls.cs.washington.edu `-------------------------------'
  34.         --*-- Member, Coalition to Preserve Semantic Vacuity --*--
  35.