Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Defining Methods in Classes for Objects Added at Runtime
Message
From
18/02/2006 15:26:25
 
 
To
17/02/2006 17:38:10
Dragan Nedeljkovich (Online)
Now officially retired
Zrenjanin, Serbia
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Environment versions
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP SP2
Network:
Windows XP
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01096949
Message ID:
01097342
Views:
24
Dragan,

>What do you mean here? What Windows event do you need? button.click() is an event that >will be caught by bindevent(), and it doesn't matter whether the click was raiseevent()>ed, or whether someone really clicked the button.

I was referring to the redundancy of raising events using RaiseEvent() that are already exposed through the Windows event model, aware that BindEvent() can bind to them as well. I used .Click() only as an example.

>As for reacting to Windows events... I think there's a way to do that in VFP9, but >haven't had the time to try it out, and don't remember how it's done.

Yes, it can be done quite easily with just a little bit of study. I have already done it successfully. If you subscribe to FoxTalk 2.0, you'll find two great articles on the subject.

Eric
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform