Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Is there any way around this issue?
Message
From
28/05/2003 18:24:17
 
 
To
28/05/2003 18:00:48
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Miscellaneous
Thread ID:
00793727
Message ID:
00793739
Views:
33
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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform