Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
ESC for exit the Form
Message
De
31/03/2000 00:45:24
 
 
À
30/03/2000 18:02:11
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00352969
Message ID:
00353139
Vues:
15
*!* Begin Code Sample

PUBLIC x
x = CREAT([oForm1])
x.SHOW

DEFINE CLASS oForm1 AS FORM
AUTOCENTER = .T.
ADD OBJECT button1 AS BUTTON
button1.LEFT = 1000
ADD OBJECT label1 AS LABEL
label1.LEFT = 125
label1.TOP = 75
label1.CAPTION = [Hit the ESC key.]
ENDDEFINE

DEFINE CLASS BUTTON AS COMMANDBUTTON
CANCEL = .T.
PROC CLICK
RELEASE THISFORM
ENDPROC
ENDDEFINE

*!* End Code Sample

>The user can close the form with CTRL+F4 or clicking the upper right corner or object with "ThisForm.release()" code.
>How could I make that the "ESC" would have the same effect?
>
>Thank's, Zlatko.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform