Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Is there any way around this issue?
Message
De
28/05/2003 18:24:17
 
 
À
28/05/2003 18:00:48
Information générale
Forum:
Visual FoxPro
Catégorie:
Classes - VCX
Divers
Thread ID:
00793727
Message ID:
00793739
Vues:
38
Hi, Bill.

>Do I have to sub-class the button so I can create the method? Is there some other way?

the one way I see would be by using BindEvent - in VFP 8.

You could create a class like:
define class Whatever as session

function HandleMyClick

  *-- do whatever you want the button's click should do.

endfunc

enddefine
then you put this code somewhere (maybe on the Init of the button)
oHandler = createobject("Whatever")
BindEvent(This, "Click", oHandler, "HandleMyClick")
HTH
Claudio Lassala
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform