Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Best way to handle toolbars
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Classes - VCX
Divers
Thread ID:
00061272
Message ID:
00061287
Vues:
36
>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
Fil
Voir

Click here to load this message in the networking platform