System Toolbar Foundation Class

Category Application
Default Catalog Visual FoxPro Catalog\Foundation Classes\Application
Class _systoolbars
Base Class Custom
Class Library _app.vcx
Parent Class _custom
Sample ...\Samples\Solution\Ffc\environ.scx

Remarks

This class is a manager class that handles and tracks System Toolbars so you can automatically remove the Visual FoxPro system toolbars in your application and later restore them. This class is used with the framework generated by the Application Wizard.

To use, drop the class on a project or form or, from the Component Gallery Item Shortcut Menu, select Add to Project or Add to Form. When you add the class to a project, you can choose between adding the class or creating a subclass. When you add the class to a form, Visual FoxPro places the icon on the form. You can then specify the appropriate property values and provide any necessary objects.

If lAutomatic is true (.T.), as in a READEVENTS-type application, the class automatically hides all existing system toolbars when you instantiate it. It then automatically restores the system toolbars hidden when it went out of scope.

You can also call the HideSystemToolbars( ) and ShowSystemToolbars( ) methods manually.

Properties, Events, Methods Description
lAutomatic property Automatically hides and restores system
toolbars for the application.
Default: .F.
aSystemToolbars[1,0] property The array of system toolbars.
Default: .F.
Hidesystemtoolbars method Manually hides system toolbars for the
application.
Syntax: Hidesystemtoolbars( )
Return: none
Arguments: none
Showsystemtoolbars method Manually shows system toolbars for the
application.
Syntax: Showsystemtoolbars( )
Return: none
Arguments: none
Initializetoolbararray method Internal to the class.

See Also

Guidelines for Using Visual FoxPro Foundation Classes | Visual FoxPro Foundation Classes A-Z | Visual FoxPro Foundation Class Samples