Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Calling the default event handler
Message
De
28/04/1998 19:36:43
 
 
À
28/04/1998 19:29:39
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00095545
Message ID:
00095549
Vues:
27
>hi,
>
>I created a container class MyButtons which contains a few commandbuttons, one of them is called cmdQuit. The default action of cmdQuit.Click() is ThisForm.Release().
>Now I added MyButtons to a form, and I modified cmdQuit.Click(), the default cmdQuit.Click() is not invoked.
>
>How can I invoke the overridden default handler?
>
>TIA.

you have several options

either use :: as in
cmdQuit::click() (in the subclass)
or just DODEFAULT()
you can also
make the click event of cmdquick something like
if this.ClickExtention() and type("thisform.name")=="C"
    thisform.release()
endif
add a method ClickExtention to your class and only put additional code there

Arnon
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform