Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Generic VCRtoolbar in all forms
Message
 
À
26/06/2002 10:53:29
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00672449
Message ID:
00672506
Vues:
8
>Thanks...
>The problem is when u close the form. You have to Hide() it in the unload event of the form right? and what happens to the remaining form ? there is no generic toolbar to manage its records.
>??

Once I had a toolbar with these characteristics the only diference is that I didn't hide the toolbar it was always present but when there was no form loaded the buttons were disabled but the basic concept is the same. Just check if there's any form open and hide the toolbar:

I putted this code in the destroy event of my form's class and it worked.
 If _Screen.Formcount <= 2 &&& A toolbar is handled as a form in _Screen
         _Screen.Toolbar.Hide             
      EndIf
HTH, Enmanuel
I'm a mixture of Albert Einstein and Arnold Schwarzenegger. The only trouble is that I got Einstein's body and Schwarzenegger's brain
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform