>I'm trying to figure out how tohandle toolbars in my application. Nothing too fancy. So I'm looking for advice and recommendations.
If you don't want anything fancy, you can use the _SCREEN.Forms collection. It can be use as a simple toolbar&form manager. (Toolbars are included in this collection.) Or it can be used by your toolbar manager.
>2. Should the destroy method of the toolbar send a message to the toolbar manager to say "I'm gone". (Is the destroy event the only one triggered when a user clicks the toolbar close key?) If it did, then the toolbar manager would perhaps clean up its list (perhaps in an array) of open toolbars. But as soon as it deleted the reference to the toolbar which called it, it would be deleting a reference to an active object and wouldn't that cause a problem?
When the last reference to an object is cleared, the object is released. If you clear a reference to an object, but not the last one, the object is not released.
Vlad
Précédent
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