Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Multiple Cancel buttons
Message
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Title:
Multiple Cancel buttons
Miscellaneous
Thread ID:
00554174
Message ID:
00554174
Views:
46
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
Map
View

Click here to load this message in the networking platform