PC SOFT

WINDEV的在线文档

  • Overview of the TreeView Table control
  • How to proceed?
  • Creating a TreeView Table control
  • Characteristics of the control
  • TreeView column
  • Handling the nodes of the tree structure by programming
  • Vocabulary
  • Swapping the Table/TreeView Table 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本地访问

Overview of the TreeView Table control
The TreeView Table control is a cross between the Table control and the TreeView control.

This control is based on the structure of a Table control (column, row, cell) but it also contains a TreeView column that introduces the notion of tree structure. This notion does not exist in a Table control.

The columns of a TreeView Table control and the columns of a Table control have the same characteristics.

17版本和更高版本
WinDev The Treeview column of a Treeview Table control can also be a container column.
17新版本
WinDev The Treeview column of a Treeview Table control can also be a container column.
WinDev The Treeview column of a Treeview Table control can also be a container column.

A TreeView Table control allows you to perform a single selection or a multiple selection as well as a sort on the columns (sort by level, among sibling elements).

The information displayed in the TreeView Table control can:

  • be defined by programming: we talk of memory TreeView Table control.
  • WinDev come from a variable: we talk of TreeView table on source.
  • come from a data file or from a query : we talk of Browsing treeview table. Only the browsing TreeView Table controls loaded in memory are available. In this case, the control handles the records of the data file loaded in memory.
18版本和更高版本
WindowsLinux The TreeView Table control is now available for the WebDev sites.
18新版本
WindowsLinux The TreeView Table control is now available for the WebDev sites.
WindowsLinux The TreeView Table control is now available for the WebDev sites.

How to proceed?

Creating a TreeView Table control

To create a TreeView Table control:
  1. In the window editor, click(or select "Insert .. Control .. TreeView table").On the "创建" pane, in the "数据" group:
    • WinDev expand "Table and list box" and select "TreeView Table".
  2. Click the position where the control must be created in the window or in the page.
20版本和更高版本
WinDev Note: The dimensions of the created control are optimized in order to occupy the available space at the specified position. If the size of the control does not suit your, press [CTRL Z]: the default size of the control will be restored.
20新版本
WinDev Note: The dimensions of the created control are optimized in order to occupy the available space at the specified position. If the size of the control does not suit your, press [CTRL Z]: the default size of the control will be restored.
WinDev Note: The dimensions of the created control are optimized in order to occupy the available space at the specified position. If the size of the control does not suit your, press [CTRL Z]: the default size of the control will be restored.

Characteristics of the control

To display the characteristics of the control, select "Description" from the popup menu of the control. Two types of information can be viewed:
  • the information regarding the entire TreeView Table control (all you have to do is select the name of the control).
  • the information regarding each column of the TreeView Table control (all you have to do is select the name of a column).
For more details about the TreeView Table controls, see:

TreeView column

To choose the column containing the hierarchy:
  1. Display the description window of the TreeView Table control.
  2. In the "General" tab, enter the number of the requested column in the edit control named "Number of the treeview column".
Note: A TreeView Table control with a single column is used to create an editable TreeView control.

16版本和更高版本
The TreeView controls are available in edit.
16新版本
The TreeView controls are available in edit.
The TreeView controls are available in edit.

Handling the nodes of the tree structure by programming

To modify the images of the treeview nodes in a TreeView Table control, use the following properties:See Handling a TreeView Table control by programming for more details.

Vocabulary
To easily handle a TreeView Table control, you must be familiar with the following vocabulary:
NameDefinition
Selection barUsed to view the selected element. A specific color is used in most cases.
BranchPart of the tree structure that can define a path:
  • from the root to a leaf,
  • from a node to another node,
  • from a node to a leaf,
  • from the root to a node,
ElementGeneric name corresponding to the content of a treeview: Root, Node or Leaf are the elements of the tree structure of a treeview table
LeafLast element of the tree structure: there is no level below.
NodeIntermediate level, can have higher levels (also called "Parent" levels) and lower levels (also called "Child" levels).
Note: the root and the leaves correspond to specific nodes.
RootFirst element in the tree structure of the treeview table. The entire tree structure can be expanded from this element.

Swapping the Table/TreeView Table controls
A TreeView Table control can be automatically transformed into a Table control (and conversely):
  1. Select the TreeView Table control to transform.
  2. Select "Control .. Swap .. Table/TreeView Table".On the "修改" pane, in the "转换" group, expand "重构和切换" and select "Table/TreeView Table".