Dialog timeout

This forum is for eXpress++ general support.
Post Reply
Message
Author
Wolfgang Ciriack
Posts: 479
Joined: Wed Jan 27, 2010 10:25 pm
Location: Berlin Germany

Dialog timeout

#1 Post by Wolfgang Ciriack »

Hi all,
i have a dialog with a timeout.

Code: Select all

DCREAD GUI .... TIMEOUT nTimeout
1. Is it possible to show the remaining seconds in the dialog ?
2. Is it possible to stop the timer from within the dialog ?
_______________________
Best Regards
Wolfgang

User avatar
Tom
Posts: 1171
Joined: Thu Jan 28, 2010 12:59 am
Location: Berlin, Germany

Re: Dialog timeout

#2 Post by Tom »

Hi, Wolfgang.

As you can see in DC_GetList:EventLoop() (_DCGETBX.PRG), the start time of the dialog is stored into a local var "nSeconds". Some changes to the DC_GetList class would allow to access this information. The timeout itself is stored into the class var "timeOut", which can be manipulated. But. Since this information is also read once by the event loop at start, a change would have no effect in my opinion.

Workaround: Create your own handler function and your own timeout system. Any event resets the timeout counter, that's almost it. If the timeout fires, just close the dialog from there.
Best regards,
Tom

"Did I offend you?"
"No."
"Okay, give me a second chance."

Zdeno Bielik
Posts: 147
Joined: Thu Jan 28, 2010 9:24 am
Location: Nitra, Slovakia
Contact:

Re: Dialog timeout

#3 Post by Zdeno Bielik »

[quote=
1. Is it possible to show the remaining seconds in the dialog ?
2. Is it possible to stop the timer from within the dialog ?
[/quote]

Hi,
any easy and ready-to-use solution I will appreciate too ;)

Zdeno

Wolfgang Ciriack
Posts: 479
Joined: Wed Jan 27, 2010 10:25 pm
Location: Berlin Germany

Re: Dialog timeout

#4 Post by Wolfgang Ciriack »

Thanks Tom.
_______________________
Best Regards
Wolfgang

Post Reply