Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Design time event handler
Message
From
10/05/2007 02:17:17
 
 
To
10/05/2007 02:04:43
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Environment versions
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP SP2
Miscellaneous
Thread ID:
01221889
Message ID:
01224049
Views:
35
>I've read further and you had the idea of using a dummy window for finding out, when the designer is closed.
>
>Well, as my solution uses the project hook, if the form or class is open in the designer, the QueryModifyFile is through, but I attach an Eventhandler, so when closing the class or form designer, the object is destroyed and if I bind to destroy the eventhandler could do something at that point.
>
>Bye, Olaf.

Tried that and of course it does not work. Events of an object in design mode do not occur. But, well, that is a thing to detect if it is not in design mode: init() always occurs when not in design mode, so in a base class init we can set This.DesignMode=.f., that should be sufficient to differntiate between an object created by a designer or not.

Bye, Olaf.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform