Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
User defined methods pre-empt necessary processing?
Message
 
À
16/07/1999 19:36:30
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00242642
Message ID:
00242669
Vues:
22
David,

Any behavior defined in teh VFP base class WILL be executed unless you take steps to stop it. It will execute after your code runs. If you want to stop it then you use the NODEFAULT command to stop the default behavior.

This is true ONLY for teh VFP base calsses, if your control is based on a class that is deifned in a class library, then adding any code to it stops the inherited behavior unless you issue a DoDefault() call. The VFP base behaviro will execute unless you stop it.

For example, if you create a textbox class and write code in the keypress event, VFP will still process the keystroke (the dafault behavior). If you place one of those textboxes in a fomr and write code in the keypress, the code in the first class will NOT run, but VFP will still process the keystroke. To get the class code to run you issue DoDefault() (and be sure to pass the parameters back also).
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform