Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Generic VCRtoolbar in all forms
Message
 
To
26/06/2002 10:53:29
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00672449
Message ID:
00672506
Views:
7
>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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform