PC SOFT

ONLINE HELP
FOR WINDEV, WEBDEV AND WINDEV MOBILE

Home | Sign in | English US
  • Overview of Toolbar control
  • Creating a Toolbar control
  • To create a Toolbar control:
  • Associating controls with the toolbar
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 of Toolbar control
The Toolbar control is an advanced type of control, linked to a window. A toolbar contains several controls (button, edit control, combo box, ...) allowing the user to quickly start some features of his application.
A toolbar can be:
  • Anchored: the toolbar is "attached" to one of the window borders.
    Docked toolbar
  • Floating: the toolbar is an independent window.
    Floating toolbar
The user can change the toolbar status with the mouse.
Creating a Toolbar control

To create a Toolbar control:

1. In the window editor, click Toolbar (or select "Insert .. Control .. Toolbar").1. On the "Window" pane, in the "Bars and menus" group, expand "Other bars" and select "Toolbar".2. Click the position where the control will be created in the window. The control appears in creation mode.
To display the control characteristics, select "Description" from the popup menu of control. The different positions allowed for the toolbar (docked or floating) can be configured in the "Details" tab.
Caution: No control should be positioned near a toolbar: If controls are positioned near the toolbar currently created (on the left of an horizontal toolbar or below a vertical toolbar), these controls will be automatically moved (and therefore they might disappear) when the user modifies the toolbar position. For example:
In the editor
Toolbar in the editor
At run time, the Print button is hidden once the toolbar was moved.
Toolbar at run time

Associating controls with the toolbar

To associate existing controls with the toolbar:
Solution 1: Drag and Drop the control to the "Toolbar" control.
Solution 2: In the control description ("General" tab), click the "Add" button and select the control that will be added to the toolbar. The selected control is automatically created in the toolbar.
To associate new controls with the toolbar:
Solution 1: Drag and Drop the control to the "Toolbar" control.
Solution 2: In the control description ("General" tab), click the "Add" button and select the type of control that will be added to the toolbar. The selected control is automatically created in the toolbar. To modify it, click the "Edit" button: the description of the new control is displayed.
Note: The spacing between the controls found in the toolbar can be configured in the "Details" tab of the toolbar description.
Related Examples:
The Toolbar control Unit examples (WINDEV): The Toolbar control
[ + ] Using a Toolbar control
Minimum required version
  • Version 9
Comments
Click [Add] to post a comment