Hi all.
For a long time ago Fred said to me
check the IsESCWasPressed is zero within the "OnCancelClose" Event.
Now I'm testing 6.0.0.27 ODCL but there is no IsESCWasPressed Variable.
Can anybody tell me where is it?
I need to trap the user pressed the Esc key.
Or is there any good idea to prevent from Closing Modeless Form by pressing Esc key?
Thanks.
Hi, maybe it was shortened by the development, but it's still there:
(defun c:Unbenannt_Dialog1_OnCancelClose (intIsESC /)
...
(/= intIsESC 1)
); c:Unbenannt_Dialog1_OnCancelClose
Since the name of the variable is local, the existing code will work as well.
Fred
(defun c:test_form_OnCancelClose (Reason / )
.....
)
And the "Reason" Var of the Event is it.
Thanks, Fred.
BTW, do you have any idea to prevent the Form Closing by EscKey pressed?
Looking for other posts, there seems no way to prevent Form Closing by EscKey.
I made it like this.
Disable the title bar and put a picture control at the top
and a small closing button of graph button control at the right upper corner.
The user didnot know whether it's real title bar or picture control ;D
Hi, did already try this?
(defun c:Unbenannt_Dialog1_OnCancelClose (intIsESC /)
(if (check_existing_data) T nil)
); c:Unbenannt_Dialog1_OnCancelClose
I'd make the form closing depending on the case all needed inputs were given correctly by the user
Fred