Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Cancelling when in Valid Event
Message
De
13/07/1997 15:17:34
 
 
À
13/07/1997 12:25:06
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00039722
Message ID:
00039775
Vues:
46
Hi! But you can check also MDOWN() and so on... Like following: if lastkey() = 27 and MCOL(THISFORM.name)>=THISFORM.cmdCancel.left AND ; MCOL(THISFORM.name)<=THISFORM.cmdCancel.left + ; THISFORM.cmdCancel.width AND ; MROW(THISFORM.name)>=THISFORM.cmdCancel.top AND ; MROW(THISFORM.name)<=THISFORM.cmdCancel.top + ; THISFORM.cmdCancel.height RETURN .t. else validation code goes here ;) (not in Hollywod ;)))) endif I wrote about lastkey() because all my base form releases themselves when user press ESC. Have a happy day Vladimir Shevchenko > Yes, but the user clicks on a Cancel button, so the last pressed key is not > Esc. :)
* Human is a question asked by birth and answered by death. Machine is another kind of question with another kind of answer
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform