Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Valid Method and Cancel Button
Message
De
20/07/1999 15:51:01
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00243647
Message ID:
00243782
Vues:
26
Beautiful. Follows the KISS philosophy as well. My solution was based on monkeying around with MROW and MCOL one day to see if they still worked :-)


>John and Others,
>
>Here's an easier way to do this.
>
>1) Set the Cancel property of the Cancel button to .T.
>2) At the beginning of every Valid event put this code;
>
>
>IF LASTKEY() = 27
>   RETURN .T.
>ENDIF
>
>
>The cancel property makes clicking the cancel button the same as pressing Escape. This has the added feature of making pressing Escape the same as clikcing the cancle button (that is the cancel button's click evnet will fire when pressing esacpe).
------------------------------------------------
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