Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Enabling/Disabling
Message
General information
Forum:
Visual FoxPro
Category:
The Mere Mortals Framework
Miscellaneous
Thread ID:
00652488
Message ID:
00655091
Views:
28
Paul,

>- This more a question than an ER - is there anyway to implement subjects/observers for custom events?

Yes, basically there is. I've already been playing around with that. But there's a problem with the cleanup of the subjects/observers when they are directly dropped on a form. But maybe that's my fault, that I'm doing something wrong here. I hadn't got enough time to have a deeper look into this, but IMO it should be possible (maybe with some small changes).

You can create a subclass of cSubject and set the token to whatever you want. Then create a subclass of cObserver and add the appropriate code to handle the incoming events. Just like it is described in the DevGuide.

I'll let you know, when I've found more about that.

Regards,
Armin

Armin Neudert
Regional Director (Stuttgart) of German FoxPro User Group dFPUG

MCP for Visual FoxPro

Expert/Editor of the VFP section in the German Codezone community portal
Previous
Reply
Map
View

Click here to load this message in the networking platform