PC SOFT

WINDEV的在线文档

  • Overview
  • Handling the controls found in the toolbar
  • How do I close the floating toolbar?
  • Specific functions for handling the toolbars
  • Properties specific to the management of a 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本地访问

Handling a toolbar by programming

Overview
WinDev allows you to handle a Toolbar control by programming. To do so, use the variable of the "Toolbar" control in the code.

The variable of the Toolbar control corresponds to the name of the toolbar. This variable has no value.

Handling the controls found in the toolbar
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 then the name of the control. For example: Toolbar1.Button1.
Note: the properties affecting the size and position of the controls found in the toolbar can be accessed in read-only.

How do I close the floating toolbar?
To close a floating toolbar by using the X, the following code line must be used in the closing code of the toolbar:

我自己..可见=

Caution: The use of 关闭 is not recommended. Indeed, this function closes the window instead of closing the toolbar.

Specific functions for handling the toolbars
The following functions are used to handle the toolbars by programming:
工具条添加Docks a toolbar to a window or changes the anchoring position of a docked toolbar.
工具栏分离Transforms a docked toolbar into a floating toolbar. This function has no effect if the toolbar is a "floating" toolbar.
工具条位置Specifies the display mode of a toolbar.

Properties specific to the management of a toolbar
The following properties are used to manage the characteristics of a toolbar by programming:
高度Enables you to find out the height of a Toolbar control
初始高度Enables you to find out the initial height of a Toolbar control
宽度Enables you to find out and modify the width of a Toolbar control
初始宽度Enables you to find out the initial width of a Toolbar control

To find out the entire list of WLanguage properties that can be used with a Toolbar control, see Properties associated with the Toolbar control.