PC SOFT

WINDEV的在线文档

  • Overview of the TreeView control
  • Control in a window or in a dynamic page
  • Creating a TreeView control
  • A popup menu automatically proposed
  • Aspect of a TreeView control in a window or in a page
  • Vocabulary associated with the TreeView control
  • Modes for filling a 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 of the TreeView control

Control in a window or in a dynamic page

The TreeView control is a tree structure used to simplify the display of information that can be represented hierarchically.

For example, the TreeView control is often used to represent the tree structure of a disk, directory, ...

Creating a TreeView control
To create a TreeView control:
  1. In the window editor or in the page editor, click(or select "Insert .. Control .. TreeView").On the "创建" pane, in the "数据" group, click "树".
  2. Click the position where the control must be created in the window or in the page. The control appears in creation mode.
To display the characteristics of the control, select "Description" from the popup menu of the control.

16版本和更高版本
WinDev The "Style" tab is used to define several characteristics such as:
  • color of even and odd rows.
  • image of the hovered row.
  • image of the selected row.
  • image and configuration of "+" and "-" buttons.
  • style of the checkmark.
16新版本
WinDev The "Style" tab is used to define several characteristics such as:
  • color of even and odd rows.
  • image of the hovered row.
  • image of the selected row.
  • image and configuration of "+" and "-" buttons.
  • style of the checkmark.
WinDev The "Style" tab is used to define several characteristics such as:
  • color of even and odd rows.
  • image of the hovered row.
  • image of the selected row.
  • image and configuration of "+" and "-" buttons.
  • style of the checkmark.

16版本和更高版本
WinDev

A popup menu automatically proposed

The TreeView control can display a specific popup menu proposing automatic features to the user. This menu is proposed by the AAF (Automatic Application Features).

This menu allows the user to:

  • copy the content of the row or column.
  • 18版本和更高版本
    expand or collapse all: This option is used to expand or collapse all the elements of the current branch.
    18新版本
    expand or collapse all: This option is used to expand or collapse all the elements of the current branch.
    expand or collapse all: This option is used to expand or collapse all the elements of the current branch.
  • WinDev in WinDev only, export the content of the treeview to Excel, Word, ...
See A popup menu for the TreeView control (AAF) for more details.
16新版本
WinDev

A popup menu automatically proposed

The TreeView control can display a specific popup menu proposing automatic features to the user. This menu is proposed by the AAF (Automatic Application Features).

This menu allows the user to:

  • copy the content of the row or column.
  • 18版本和更高版本
    expand or collapse all: This option is used to expand or collapse all the elements of the current branch.
    18新版本
    expand or collapse all: This option is used to expand or collapse all the elements of the current branch.
    expand or collapse all: This option is used to expand or collapse all the elements of the current branch.
  • WinDev in WinDev only, export the content of the treeview to Excel, Word, ...
See A popup menu for the TreeView control (AAF) for more details.
WinDev

A popup menu automatically proposed

The TreeView control can display a specific popup menu proposing automatic features to the user. This menu is proposed by the AAF (Automatic Application Features).

This menu allows the user to:

  • copy the content of the row or column.
  • 18版本和更高版本
    expand or collapse all: This option is used to expand or collapse all the elements of the current branch.
    18新版本
    expand or collapse all: This option is used to expand or collapse all the elements of the current branch.
    expand or collapse all: This option is used to expand or collapse all the elements of the current branch.
  • WinDev in WinDev only, export the content of the treeview to Excel, Word, ...
See A popup menu for the TreeView control (AAF) for more details.

Aspect of a TreeView control in a window or in a page

WinDev Example of TreeView control displayed in a window. In this example, the images of folders have been customized.

16版本和更高版本
The checkmarks found in the TreeView control are available from version 16.
16新版本
The checkmarks found in the TreeView control are available from version 16.
The checkmarks found in the TreeView control are available from version 16.

  • In WebDev, you have the ability to configure the position of the caption for a branch without image ("Details" tab of the description window of the control):

Vocabulary associated with the TreeView control
To handle a TreeView control, you must be familiar with some definitions:

NameDefinition
BranchSection of the TreeView control 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 a treeview.
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 or the leaves correspond to specific nodes.
RootFirst element of the treeview. The entire tree structure can be expanded from this element.

Modes for filling a TreeView control
A TreeView control can be filled:
  • by programming, via several processes and WLanguage functions.
  • 16版本和更高版本
    WinDev via a file link.
    16新版本
    WinDev via a file link.
    WinDev via a file link.