Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Valid Hangup when Cancelling!
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Visual FoxPro:
VFP 8 SP1
OS:
Windows XP SP2
Database:
Visual FoxPro
Divers
Thread ID:
00993975
Message ID:
00994050
Vues:
29
>>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
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform