Dock
This method lets you dock or undock a toolbar programmatically. You pass the appropriate position.
Usage |
tbrToolBar.Dock( nDockPosition [, nXPosition, nYPosition ] ) |
Parameter |
Value |
Meaning |
nDockPosition |
-1 |
Undock the toolbar. |
0 |
Dock the toolbar at the top. |
|
1 |
Dock the toolbar at the left. |
|
2 |
Dock the toolbar at the right. |
|
3 |
Dock the toolbar at the bottom. |
|
nXPosition, nYPosition |
Omitted |
Put the toolbar at the next available position on the specified side. For undocking, return the toolbar to its last undocked location. |
Numeric |
Position the toolbar at the specified location. For each dock position, only one of the two coordinates is used (nXPosition for top and bottom, nYPosition for the sides). For undocking, put the toolbar at the specified location. |
Example |
* Dock a toolbar at the bottom ThisFormSet.tbrNavButtons.Dock(3) * Undock a toolbar and put in at a specific position ThisFormSet.tbrStandard.Dock(-1,100,100) |
See Also |
AfterDock, BeforeDock, Docked, DockPosition, Toolbar, Undock |