Kbase P81133: How to exit an application if there is no user interaction in a set amount of time?
Autor |
  Progress Software Corporation - Progress |
Acesso |
  Público |
Publicação |
  03/02/2009 |
|
Status: Verified
GOAL:
How to exit an application if there is no user interaction in a set amount of time?
FACT(s) (Environment):
Windows
Progress 9.x
OpenEdge 10.x
OpenEdge Language Category: ActiveX
FIX:
One way to accomplish this is via the following:
1) Place a Timer OCX on the window
2) Set the interval for the Timer OCX to whatever is needed
3) In the Timers Tick event test for ETIME being greater than some specified amount of time and if the condition is true add code to exit from the window.
4) In each active widget on the window add a trigger behind the widget that simply executes ETIME(YES). This will reset the ETIME counter to zero.
When the Timers Tick event fires the test for ETIME being greater than some amount of time will return true if none of the active widgets had their triggers executed (which would reset ETIME to zero).