Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Capturing a Mouse Click on a from's Close Button
Message
De
25/04/2008 00:25:06
 
 
À
24/04/2008 14:08:25
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Visual FoxPro:
VFP 9 SP2
OS:
Windows XP SP2
Network:
Windows NT
Database:
MS SQL Server
Divers
Thread ID:
01312832
Message ID:
01313070
Vues:
19
To clarify, you mean a button with the Cancel property set True.

>>It triggers QueryUnload() event. See also the ReleaseType property.
>Execute NODEFAULT to preven in it form closing.
>
>>>When using a form in VFP9, I want to capture the "mouse click" on the red "X" close button and do some testing before I allow the user to close the form.
>>
>
>Just a note here, the QueryUnload() event is only called via the "Red-X" button; if you have a "Cancel" commandbutton that will close the form via a RELEASE thisform or thisform.Release() in the Click event, the QueryUnload event will not be called. You have to process the test in the commandbutton click event as well.
------------------------------------------------
John Koziol, ex-MVP, ex-MS, ex-FoxTeam. Just call me "X"
"When the going gets weird, the weird turn pro" - Hunter Thompson (Gonzo) RIP 2/19/05
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform