Article ID: 139568
Article Last Modified on 8/24/1999
This.Dock(0)-or-
ThisFormSet.<name property of toolbar object>.Dock(0)You can also dock the toolbar to the left, right, top, bottom, or a set of coordinates by using a different number or set of numbers. To undock the toolbar, use the -1 parameter, as in this example:
This.Dock(-1)For information on how to add a toolbar to your form or formset, please refer to page 345 of the "Microsoft Visual FoxPro Developer's Guide," in the "Adding Custom Toolbars to Form Sets" section. You can also drag a toolbar that you have created from your project's Classes tab to the form. If the form is not a formset, a dialog box will appear that asks:
A formset object is required to add a form. Create one?
ToolBar.Dock [nLocation [, X, Y]]
Value Constant Description
--------------------------------------------------------------------------
- 1 TOOL_NOTDOCKED Undocks the Toolbar.
0 TOOL_TOP Docks the toolbar at the top of the main Visual
FoxPro window.
1 TOOL_LEFT Docks the toolbar at the left side of the main
Visual FoxPro window.
2 TOOL_RIGHT Docks the toolbar at the right side of the main
Visual FoxPro window.
3 TOOL_BOTTOM Docks the toolbar at the bottom of the main Visual
FoxPro window.
X, Y Specifies the horizontal and vertical coordinates
of the docked position of the toolbar.
When a toolbar is docked, its title bar is hidden and its border is changed
to a single line. The toolbar is also resized to a single row of buttons.
The window is resized so that the toolbar does not obscure any information
on the screen.
Additional query words: VFoxWin tool bar
Keywords: KB139568