PC SOFT

ONLINE HELP
FOR WINDEV, WEBDEV AND WINDEV MOBILE

Home | Sign in | English US
New WINDEV 23 feature!
  • Overview
  • Handling the controls found in the toolbar
  • How to close the floating toolbar?
  • Specific functions for handling toolbars
  • 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 found in the toolbar
The controls found in the toolbar can be accessed:
  • like any other control, by using their name directly.
  • by specifying the toolbar name then the control name. 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?
To close a floating toolbar by using the X, the following code line must be used in the closing code of toolbar:
MySelf..Visible = False
Caution: The use of Close is not recommended. Indeed, this function closes the window instead of closing the toolbar.
Specific functions for handling toolbars
The following functions are used to handle the Toolbar control by programming:
Versions 09 and later
<Toolbar>.Dock
New in version 09
<Toolbar>.Dock
<Toolbar>.Dock
Docks a toolbar to a window or changes the anchoring position of a docked toolbar.
Versions 09 and later
<Toolbar>.Position
New in version 09
<Toolbar>.Position
<Toolbar>.Position
Indicates the display mode of a Toolbar control.
Versions 09 and later
<Toolbar>.Undock
New in version 09
<Toolbar>.Undock
<Toolbar>.Undock
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 required version
  • Version 23
Comments
Click [Add] to post a comment