|
|
|
|
|
- Toolbar control overview
- Creating a Toolbar control
- To create a Toolbar control:
- Associating controls with the toolbar
The Toolbar control is an advanced type of control, linked to a window. A toolbar can contain multiple controls (Button, Edit control, Combo Box, etc.) to allow users to quickly access the features of their application. A toolbar can be: - Anchored: the toolbar is "stuck" to one of the window's edges.
- Floating: the toolbar is an independent window.
The user can change the toolbar state with the mouse. Creating a Toolbar control To create a Toolbar control: - On the "Window" tab, in the "Bars and menus" group, expand "Other bars" and select "Toolbar".
- Click at the desired location to create the control. The control appears in the editor.
To view the characteristics of the control, select "Description" in the context menu. The toolbar position options (docked or floating) can be defined in the "Details" tab. Warning: Do not place fields next to a toolbar: If fields are positioned next to the toolbar being created (to the left of a horizontal bar or below a vertical bar), these fields will automatically be moved (and may disappear) when the user changes the toolbar position.. For example: Associating controls with the toolbar To associate existing controls with the toolbar: Solution 1: Drag and Drop from the field to the "Toolbar" field. Solution 2: In the field description ("General" tab), click on the "Add" button and select the field to be added to the toolbar.. The selected control is automatically added to the toolbar. To associate new controls with the toolbar: Solution 1: Drag and Drop from the field to the "Toolbar" field. Solution 2: In the field description ("General" tab), click on the "Add" button and select the type of field to add to the toolbar.. The selected control is automatically added to the toolbar. To modify it, click the "Edit" button: the description of the new control is displayed.
Related Examples:
|
Unit examples (WINDEV): The Toolbar control
[ + ] Using a Toolbar control
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|