ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Help / WLanguage / WLanguage functions / Controls, pages and windows / Toolbar functions
WINDEV
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac CatalystUniversal Windows 10 App
Others
Stored procedures
Docks a Toolbar control to a window or changes the anchoring position of a docked Toolbar control.
Example
TBAR_Toolbar1.Dock(barUp)
Syntax
<Toolbar control>.Dock([<Docked side> [, <X> , <Y>]])
<Toolbar control>: Control name
Name of Toolbar control to use.
<Docked side>: Optional constant
Toolbar control docking side:
barDownThe Toolbar control is docked at the bottom of the main window.
barLeftThe Toolbar control is docked to the left of the main window.
barRightThe Toolbar control is docked to the right of the main window.
barUp
(Default value)
The Toolbar control is docked at the top of the main window.
<X>: Optional integer
X-coordinate of the upper-left corner of Toolbar control. This X-coordinate is equal to 0 by default.
If the barLeft constant is used, <X> is passed for information only. The Toolbar control is always docked to the left or to the right. If several Toolbar controls are docked, the specified Toolbar control is inserted as close as possible to the <Y> position specified.
<Y>: Optional integer
Y-coordinate of the upper-left corner of the toolbar. This Y-coordinate is equal to 0 by default.
If the barUp constant is used, <Y> is passed for information only. The Toolbar control is always docked at the top or at the bottom. If several Toolbar controls are docked, the specified Toolbar control is inserted as close as possible to the <Y> position specified.
Remarks
The keyword MyWindow must not be used:
  • in the events associated with the Toolbar control.
  • in the events associated with the controls in the toolbar.
Component: wd290obj.dll
Minimum version required
  • Version 23
This page is also available for…
Comments
Click [Add] to post a comment

Last update: 06/19/2023

Send a report | Local help