PC SOFT

WINDEV的在线文档

  • Overview
  • Handling a sidebar pane
  • Changing the active pane
  • Finding out the active pane
  • WLanguage functions used to handle the sidebars
  • Properties specific to "Sidebar panes" controls
文档页面当前正在翻译。对于此延迟我们深表歉意。
您可以自愿地帮助我们翻译您想要的文档段落,然后只需通过以下地址与我们联系: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 Sidebar control by programming

Overview
WinDev and WinDev Mobile enable you to handle a Sidebar control by programming. To do so, use the variable of the Sidebar control directly in the code.

The variable of the Sidebar control corresponds to the number of the active pane. This variable is an integer.

Note: WinDev and WinDev Mobile automatically manage the move when a pane is clicked by the user.

Handling a sidebar pane
To handle a pane, use the following syntax:

SidebarName[PaneNumber]..PropertyName = PropertyValue

For example:
SIDE_MyBox2】..报表=变灰

Changing the active pane
The pane 1 (the top pane) is enabled by default. You have the ability to change the current pane by programming.

To enable a sidebar pane:

  • Assign the tab with the number of the pane to enable:
SidebarName = PaneNumber

The number is assigned during the description of the panes: in the list of panes, the first pane is number 1, the second pane is number 2...

Notes:
  • The displayed pane is not modified if the specified pane does not exit.
  • A single pane can be displayed on a sidebar.
  • When changing pane:
    • the exit code of the control with focus is run.
    • the entry code of the first editable control in the pane is enabled.

Finding out the active pane
To retrieve the number of the active pane:
  • a simple assignment is sufficient. For example:
NumActivePane = NameSidebarControl

WLanguage functions used to handle the sidebars
The following functions are used to manage the characteristics of a sidebar control by programming.
控件克隆Clones a control by associating it with a pane in a Sidebar control.
列举控件Lists the controls associated with a sidebar.
列举子元素Enumerate the panes of a sidebar.

Properties specific to "Sidebar panes" controls
The following properties are used to manage the characteristics of a "pane" control by programming.
图片Enables you to find out and modify the image associated with a sidebar pane.
To handle the pane, use the following notation: <SidebarName> [<Pane Subscript>].
数目Enables you to find out the number of sidebar panes.

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