PC SOFT

WINDEV的在线文档

  • Overview of the Toolbar control
  • Creating a Toolbar control
  • To create a Toolbar control:
  • Associating controls to tghe toolbar
文档页面当前正在翻译。对于此延迟我们深表歉意。
您可以自愿地帮助我们翻译您想要的文档段落,然后只需通过以下地址与我们联系:info@cn.windev.com
产品
WinDevWebDev-服务器代码WebDev-浏览器代码WinDev Mobile报表和查询
平台
WindowsLinuxWindows MobileWindows PhoneWindows Store appsAndroidAndroid Widget iPhone/iPad
语言
JavaPHPAjax用户代码(MCU)外部语言
数据库
HFSQLHFSQL Client/Server存储过程HF 5.5OLE DBODBC本地访问

Overview of the 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.

  • Floating: the toolbar is an independent window.

The user can change the status of the toolbar with the mouse.

Creating a Toolbar control

To create a Toolbar control:

1. In the window editor, click(or select "Insert .. Toolbar") .1. On the "窗口" pane, in the "栏和菜单" group, expand "其他栏" and select "Toolbar".2. Click the position where the control must be created in the window. The control appears in creation mode.

To display the characteristics of the control, select "Description" from the popup menu of the 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 position of the toolbar. For example:

In the editor

At run time, the Print button is hidden once the toolbar has been moved.

Associating controls to tghe 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.