Versions des environnements
>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.
Précédent
Suivant
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement