Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Valid Hangup when Cancelling!
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 8 SP1
OS:
Windows XP SP2
Database:
Visual FoxPro
Miscellaneous
Thread ID:
00993975
Message ID:
00994050
Views:
30
>>Well, the Cancel button Default Property is .F. . I am able to select it with the mouse, even when the employee code field of the grid has focus. When I select the Cancel button, is when the system window for verifying my Cancel choice comes up.... and the hang-up.
>>
>>I guess I am forced to do some fancy coding to DISABLE the Cancel button while the Employee Code has focus.
>>
>>Thanks!
>
>Tommy,
>
>Actually, you can put some code in the VALID() that can check a couple of things:
>
>* Is the mouse currently over the Cancel button?
>* Does the Cancel button the current control?
>
>Then, only if those two tests fail do you do your validation code.

I did a variation of these ideas awhile ago. I fixed the problem by adding a custom property to the form to keep track of the cancel button being fired. Then I checked on this in the valid of the textbox in question.

Thanks!
Tommy Tillman A+ NetWork+ MCP
Previous
Reply
Map
View

Click here to load this message in the networking platform