|
|
|
|
- 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 a Toolbar control
Handling a toolbar through programming
WINDEV allows you to handle a Toolbar control through 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:
Remark: 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: 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 through programming:
| | 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 the management of a Toolbar control The following properties are used to manage the characteristics of a Toolbar control through programming: | | Height | Used to find out the height of a Toolbar control. | InitialHeight | Used to find out the initial height of a Toolbar control. | InitialWidth | Used to find out the initial width of a Toolbar control. | Width | Used to find out and modify the width of a Toolbar control. |
For a complete list of WLanguage properties that can be used with a Toolbar control, see Properties associated with Toolbar controls.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|