Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
More on ESCAPING a form
Message
De
27/03/2004 16:35:50
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivie
 
 
À
27/03/2004 13:14:55
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00890174
Message ID:
00890195
Vues:
17
>Recently, I started a thread as to know what makes the ESC closes the form. I've been searching my framework and there is nothing in there that has been done to do that. We don't have any button on the form, no ON ESCAPE and nothing in the KeyPress() event. What I think is that the recent version of VFP could make that a default when that key is pressed to close the form. Could that be it? If yes, does that make sense that it is not applicable to modal form?

The most common ways to do this would be a CommandButton, with the corresponding Cancel property, and a Form.KeyPress() event - but you state that this is not the case.

I would suspect that this sort of commands are hidden somewhere along the inheritance hierarchy - something like ON KEY, ON ESCAPE or Form.KeyPress(). Perhaps the debugger can help you here. For instance, put some code, like SET STEP ON, into Form.Release(), and then check the execution stack to see where that came from.
Difference in opinions hath cost many millions of lives: for instance, whether flesh be bread, or bread be flesh; whether whistling be a vice or a virtue; whether it be better to kiss a post, or throw it into the fire... (from Gulliver's Travels)
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform