Trap Escape Key (AREV Specific)
At 07 FEB 2002 10:33:21AM Dave Berkovsky wrote:
I would like to run subroutine if user presses escape key to exit window. How do I determine and trap a key pressed ?
Any suggestions would be appreciated.
Thanks
Dave
At 07 FEB 2002 11:05AM [url=http://www.sprezzatura.com" onMouseOver=window.status=Click here to visit our web site?';return(true)]The Sprezzatura Group[/url] wrote:
This may help - http://www.sprezzatura.com/revmedia/v1i9a19.htm
World Leaders in all things RevSoft
At 07 FEB 2002 01:05PM Dave Harmacek wrote:
If this is a collector window just use the Save Code Command. Select an unused column number and set it to "1". Then examine that column number in @PSEUDO in the calling program.
Using column number 9:
C @RECORD=1"
is in Collector Save Code Command.
Dave
At 07 FEB 2002 05:30PM Dave Berkovsky wrote:
Thanks. I found what I was looking for in Sprezzatura knowledge base.
At 08 FEB 2002 09:58AM Cameron Christie wrote:
Yes, they seem to know a thing or two at Sprezz…
FWIW, determining whether a user pressed escape in a window can be complicated, for example by whether they clicked the exit button with a mouse. Checks with Esc.To.Exit() won't always catch this.
A good alternative for collectors is to have a SAVE process set a flag (most conveniently in a window register) which can then be checked by the POST APPLICATION process. If the flag isn't set, then the user didn't save, and so they must have "pressed Escape".