PC SOFT

WINDEVWEBDEV AND WINDEV MOBILE
ONLINE HELP

Home | Sign in | English UK
  • Overview
  • Handling the controls in a Toolbar control
  • How to close the floating Toolbar control?
  • Specific functions for managing Toolbar controls
  • Properties specific to the management of Toolbar control
WINDEV
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadApple WatchUniversal Windows 10 AppWindows Mobile
Others
Stored procedures
Overview
WINDEV allows you to handle a Toolbar control by programming. To do so, use the variable of the "Toolbar" control in the code.
The variable of Toolbar control corresponds to the toolbar name. This variable has no value.
Handling the controls in a Toolbar control
The controls found in the toolbar can be accessed:
  • like any other control, by using their name directly.
  • by specifying the name of the Toolbar control, then the name of the control. For example:
    Toolbar1.Button1
Note: the properties affecting the size and position of controls found in the toolbar can be accessed in read-only.
How to close the floating Toolbar control?
To close a floating Toolbar control using the X, you must write the following line of code in the "Closing" event of the Toolbar control:
MySelf..Visible = False
Caution: The use of Close is not recommended. This function closes the window and not the Toolbar control.
Specific functions for managing Toolbar controls
The following functions are used to handle the Toolbar control by programming:
Versions 09 and later
ToolbarDock
New in version 09
ToolbarDock
ToolbarDock
Docks a Toolbar control to a window or changes the anchoring position of a docked Toolbar control.
Versions 09 and later
ToolbarPosition
New in version 09
ToolbarPosition
ToolbarPosition
Indicates the display mode of a Toolbar control.
Versions 09 and later
ToolbarUndock
New in version 09
ToolbarUndock
ToolbarUndock
Transforms a docked Toolbar control into a floating Toolbar control.
Properties specific to the management of Toolbar control
The following properties are used to manage the characteristics of a Toolbar control by programming:
HeightUsed to find out the height of a Toolbar control.
InitialHeightUsed to find out the initial height of a Toolbar control.
WidthUsed to find out and modify the width of a Toolbar control.
InitialWidthUsed to find out the initial width of a Toolbar control.

To find out the entire list of WLanguage properties that can be used with a Toolbar control, see Properties associated with the Toolbar control.
Minimum version required
  • Version 9
Comments
Click [Add] to post a comment