General information
Category:
The Mere Mortals Framework
Title:
Escaping from a MODAL form...how to trap this?
Greetings!
I have a cBizObjForm form that I made MODAL. I want to allow the user to minimize and maximize the form if they want. But, I don't want them to be able to ESCAPE out of the form. I have a command button set as the Cancel button that has code in it that MUST run if they exit the form without taking some other action.
However, when I hit escape key, a window pops up asking me if I want to save my changes? I've tried putting ON ESCAPE commands, testing for LASTKEY() = 27, etc. into the form.Init, .Release, etc. Nothing seems to over-ride this ESCAPE mechanism????
Anyone have any idea how this could be done in the framework?
Thanks in advance!
Next
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only