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