|
|
|
|
|
- Overview
- Manipulating controls in a toolbar
- How to close a floating Toolbar control?
- Functions specific to Toolbar controls
- Properties specific to Toolbar controls
Manipulating Toolbar controls programmatically
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:
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: 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:
| | ToolbarDock | Docks a Toolbar control to a window or changes the anchoring position of a docked Toolbar control. | ToolbarPosition | Indicates the display mode of a Toolbar control. | ToolbarUndock | Transforms 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: | | Height | Gets the height of a Toolbar control. | InitialHeight | Gets the initial height of a Toolbar control. | InitialWidth | Gets the initial width of a Toolbar control. | Width | Gets 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.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|