home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #1 / NN_1993_1.iso / spool / comp / database / 8984 < prev    next >
Encoding:
Internet Message Format  |  1993-01-11  |  1.7 KB

  1. Path: sparky!uunet!usc!wupost!emory!ogicse!news.u.washington.edu!hardy.u.washington.edu!someday
  2. From: someday@hardy.u.washington.edu (Scott Johnson)
  3. Newsgroups: comp.databases
  4. Subject: Re: popup that maintains cursor position on redisplay in Revelation
  5. Keywords: Revelation popup
  6. Message-ID: <1ir59jINN5vu@shelley.u.washington.edu>
  7. Date: 11 Jan 93 06:49:23 GMT
  8. Article-I.D.: shelley.1ir59jINN5vu
  9. References: <1993Jan11.035408.16861@massey.ac.nz>
  10. Organization: University of Washington, Seattle
  11. Lines: 29
  12. NNTP-Posting-Host: hardy.u.washington.edu
  13.  
  14. In article <1993Jan11.035408.16861@massey.ac.nz> D.M.Todd@massey.ac.nz (D.M. Todd) writes:
  15. >How can I set up a popup in Advanced Revelation (3.x) that will return
  16. >to the same row after it is executed.  Ordinarily a redisplayed popup
  17. >will place the cursor on row 1, but I'd like it to put the cursor on
  18. >the row that was previously selected.
  19. >
  20. >Any help will be much appreciated.
  21.  
  22. I'm not clear on what you mean by "return...after it is executed".
  23. But if you mean you are repeatedly displaying a popup by a direct call
  24. to the POP.UP() function, then you can position the highlight bar on a
  25. specific row by setting field <2> of the coordinates (11th) argument.
  26. Example (off the top of my head):
  27.  
  28.   selection = 1
  29.   loop
  30.     coordinates = ""
  31.     coordinates<2> = selection
  32.     selection = pop.up( ........... , coordinates , ... )
  33.   while selection <> NULL$
  34.     gosub process_selection
  35.   repeat
  36.  
  37. (Assuming the usual EQUATEs and DECLAREs at the top of the code.)
  38. This fragment would repeatedly display a popup as the user makes
  39. selections, until the user quits by pressing [Esc].  Each time around,
  40. it positions the highlight on the previous selection.  Is this it?
  41.  
  42. -Scott
  43.