PC SOFT

WINDEV的在线文档

  • Overview
  • How to proceed?
  • Creating a browsing Treeview control
  • "Delayed fill of sub-levels" option
  • Handling a browsing TreeView control
  • Browsing TreeView control
文档页面当前正在翻译。对于此延迟我们深表歉意。
您可以自愿地帮助我们翻译您想要的文档段落,然后只需通过以下地址与我们联系: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
From version 16, you have the ability to create TreeView controls directly linked to the data.

You can create a browsing TreeView control: the TreeView control will be linked to a data file or to a query.

The programming of the TreeView controls is simplified: there is no need to use the TreeXXX functions directly.

How to proceed?

Creating a browsing Treeview control

To create a browsing TreeView control:
  1. Create a TreeView control ("Insert .. Control .. Treeview").Create a TreeView control (on the "创建" pane, in the "数据" group, click "树").
  2. Display the description window of the control ("Description" from the popup menu).
  3. In the "Content" tab, select "File/Query".
  4. Click the "Add" button. A "<None>" source is automatically added.
  5. Define the characteristics of this source:
    • Source: corresponds to the data file or to the query that will be browsed.
    • Browse: corresponds to the search key used to browse the source.
    • Displayed: corresponds to the item displayed in the TreeView control.
  6. Add (if necessary) a second source for the next level ("Add" button). In this case, you have the ability to define the source of the link for the previous level.
    For example, if the first level browses the Customer file, the second one can browse the Orders file for example. The "Customer.CustomerID" and "Orders.CustomerID" items will be used for the link. By default, the source of the link is automatically deduced from the items and the links defined in the analysis.
  7. Define as many sources as necessary.
    Special case: Recursive browsing treeview
    A browsing TreeView control can display records that depend on the previous record (standard case of a recursive link used to manage the parents and the children for example).
    To manage this type of TreeView control, you have the ability to define a reflexive link in the "Content" tab of the description window of the TreeView control.
  8. Validate the description window of the Treeview control. The TreeView control is a browsing TreeView.

19版本和更高版本
WinDev

"Delayed fill of sub-levels" option

When a browsing Treeview control contains a large number of elements and sub-elements, filling it may take some time.

The "Delayed fill of sub-levels" option allows you to fill each sub-level when the user clicks to expand a level. In this case, the filling time is spread out and the initial fill is much faster.

Note: To use this option on a TreeView control filled by programming, call ..添加子元素.

19新版本
WinDev

"Delayed fill of sub-levels" option

When a browsing Treeview control contains a large number of elements and sub-elements, filling it may take some time.

The "Delayed fill of sub-levels" option allows you to fill each sub-level when the user clicks to expand a level. In this case, the filling time is spread out and the initial fill is much faster.

Note: To use this option on a TreeView control filled by programming, call ..添加子元素.

WinDev

"Delayed fill of sub-levels" option

When a browsing Treeview control contains a large number of elements and sub-elements, filling it may take some time.

The "Delayed fill of sub-levels" option allows you to fill each sub-level when the user clicks to expand a level. In this case, the filling time is spread out and the initial fill is much faster.

Note: To use this option on a TreeView control filled by programming, call ..添加子元素.

Handling a browsing TreeView control

Browsing TreeView control

A browsing TreeView control can be easily handled:
  • If the browsing Treeview control allows the modification, the modifications performed in the Treeview control will be automatically carried over into the linked data source.
  • If the browsing TreeView control does not allow the input, the linked data source will not be modified by the user directly.