Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to find out programatically what toolbars are up
Message
 
To
01/07/2001 14:45:38
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00525697
Message ID:
00525746
Views:
17
>Hi,
>
>While setting up the development environment, I need to know height of toolbars and which are visible.
>
>Does one of the sysmetrics tell you the height of a toolbar band?
>
>Is there a toolbar collection other than through a framwork?
>
>TIA,
>
>Alex

Hi Alejandro,

Toolbars collection does not exist, custom toolbars references may be obtaimed through _SCREEN.FORMS() colelction if you loop through screen.forms collection and look for _SCREEN.FORMS(n).Baseclass ="Toolbar"
There is no SYSMETRIC functions for the toolbars.

You can check if system toolbars are visible with WVISIBLE() function:

?WVISIBLE("Standard")
?WVISIBLE("Form Controls")
etc.

Check out Application.Releasetoolbars() method in Tastrade example, TSGEN class library.
Nick Neklioudov
Universal Thread Consultant
3 times Microsoft MVP - Visual FoxPro

"I have not failed. I've just found 10,000 ways that don't work." - Thomas Edison
Previous
Reply
Map
View

Click here to load this message in the networking platform