General information
Category:
Forms & Form designer
Title:
Multiple Cancel buttons
I have two buttons on a form, both of which I would like to use to suppress validation on the active control. To do that, I can set their Cancel property to .T. (the framework I use already suppresses validation if a button with the Cancel property is set). The problem is, the Cancel property also leads to the separate behavior that pressing Esc selects that button.
It appears that, when the user hits Esc while on a form with two Cancel buttons, VFP essentially picks one of the buttons and executes its event. That would be fine, if I could select which button gets run. Unfortunately, I can't see how to do this.
In a perfect world, I think VFP would offer two properties: SuppressValidation and FireOnEscape. That way, I could set SuppressValidation to .T. for both buttons, but FireOnEscape just for one. In the absence of that setup, is there any way for me to achieve the functionality I want?
Thanks!
zahid
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