Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

FPD2.6 POPUPs TIMEOUT -- How-to?

Status
Not open for further replies.

jwilson58

Programmer
Sep 23, 2003
14
US
Does anyone know of a way to TIMEOUT of a POPUP?

I am using the DEFINE POPUP ... DEFINE BAR ... ACTIVATE POPUP construct and would like to TIMEOUT after no user input like you can with BROWSE.

Foxprox DOS 2.6 on DOS, WIN98, and WINXP

Thanks,
John
 
Since the popup is basically a READ MODAL at the time the line ON SELECTION POPUP is executed, and there is no timeout clause for that command, I can't see of any way to do it. But I've been wrong before.


-Dave S.-
[cheers]
Even more Fox stuff at:
 
try the @ get and read version of using popups
the only problem is you have to remember to clear the lines
on the screen that the popup occupied.

an example follows:

CLEAR
SET TALK OFF
DEFINE POPUP TESTING FROM 10,10 TITLE 'TESTING THIS POPUP'
DEFINE BAR 1 OF TESTING PROMPT 'One'
DEFINE BAR 2 OF TESTING PROMPT 'Two'
DEFINE BAR 3 OF TESTING PROMPT 'Three'
DEFINE BAR 4 OF TESTING PROMPT 'Four'
DEFINE BAR 5 OF TESTING PROMPT 'Five'
DEFINE BAR 6 OF TESTING PROMPT 'Six'
WKEY=2
@ 10,10 GET WKEY POPUP TESTING
READ TIMEOUT 10
@ 10,10 CLEA TO 10+CNTBAR('TESTING')+1,78
@ 20,10 SAY BAR()
@ 21,10 SAY WKEY
@ 22,10 SAY PRMBAR('TESTING',WKEY)
RELEASE POPUP TESTING
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top