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
  • Toolbar control overview
  • Creating a Toolbar control
  • To create a Toolbar control:
  • Associating controls with the toolbar
WINDEV
WindowsLinuxJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac Catalyst
Others
Stored procedures
Toolbar control overview
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.
    Docked toolbar
  • Floating: the toolbar is an independent window.
    Floating toolbar
The user can change the toolbar state with the mouse.
Creating a Toolbar control

To create a Toolbar control:

  1. On the "Window" tab, in the "Bars and menus" group, expand "Other bars" and select "Toolbar".
  2. 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.
Remark: The space between toolbar fields 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 version required
  • Version 9
Comments
Click [Add] to post a comment

Last update: 09/20/2024

Send a report | Local help