ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

This content has been translated automatically.  Click here  to view the French version.
Help / Developing an application or website / Controls, windows and pages / Controls: Available types / Toolbar control
  • Overview
  • Manipulating controls in a toolbar
  • How to close a floating Toolbar control?
  • Functions specific to Toolbar controls
  • Properties specific to Toolbar controls
WINDEV
WindowsLinuxJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac Catalyst
Others
Stored procedures
Overview
WINDEV allows you to programmatically manipulate Toolbar controls. Simply use the variable of the Toolbar control in the code.
This variable of the Toolbar control corresponds to the toolbar name. This variable has no value.
Manipulating controls in a toolbar
The controls of a 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:
    Barre1.Bouton1
Remark: size and position properties of toolbar fields are read-only.
How to close a floating Toolbar control?
To close a floating Toolbar control using the X button, you must write the following line of code in the "Close" event of the Toolbar control:
MySelf..Visible = False
Caution: Do not use the Close function.. This function closes the window and not the Toolbar control.
Functions specific to Toolbar controls
The following functions can be used to programmatically manipulate Toolbar controls:
ToolbarDockDocks a Toolbar control to a window or changes the anchoring position of a docked Toolbar control.
ToolbarPositionIndicates the display mode of a Toolbar control.
ToolbarUndockTransforms a docked Toolbar control into a floating Toolbar control.
Properties specific to Toolbar controls
The following properties can be used to programmatically define the characteristics of Toolbar controls:
HeightGets the height of a Toolbar control.
InitialHeightGets the initial height of a Toolbar control.
InitialWidthGets the initial width of a Toolbar control.
WidthGets and sets the width of a Toolbar control.

For a complete list of WLanguage properties that can be used with Toolbar controls, see Toolbar control properties.
Minimum version required
  • Version 9
Comments
Click [Add] to post a comment

Last update: 09/20/2024

Send a report | Local help