Question Implementing Session Timeout In Gui

gnome

Member
Hi All,

I was looking for was to implement session timeout in GUI and followed the link and its working but have side effects where all the click events (like buttons) needs to be double clicked before it executes action.

Progress KB - How to programmatically timeout an ABL session?

Checking on the code, I found out that the below code seems to overide the default actions of buttons and impacts all programs on that session.

Code:
ON 'ANY-KEY':U, 'MOUSE-SELECT-DOWN':U, 'MOUSE-SELECT-CLICK':U ANYWHERE DO:
    RUN ResetTimer.
END

Does anybody knows how to make the buttons behave as normal?

TIA.
 

Cecil

19+ years progress programming and still learning.
I want to say put a "Process Events" and "return no-apply" on the block statement. But I don't think that I am right.
 

gnome

Member
I want to say put a "Process Events" and "return no-apply" on the block statement. But I don't think that I am right.

Yea, tried that as well and seems to be not working. The closest solution I made was to change it to below code.

Code:
ON 'ANY-PRINTABLE':U, 'CHOOSE':U,'ENTRY':U,'VALUE-CHANGED':u ANYWHERE DO:
    ETIME(TRUE).
END.

For those still using OpenEdge GUI, "ANY-KEY" will also have impact on when you highlight/copy some text.
 
Top