PC SOFT

WINDEV的在线文档

  • Overview
  • Initializing a TreeView control
  • Filling a treeview
  • WLanguage properties associated with the TreeView controls
  • Using properties on 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
WinDev, WinDev Mobile and WebDev allow you to handle a TreeView control by programming. To do so, use the variable of the TreeView control in the code.

The variable of the TreeView control corresponds to the name of the TreeView control.

This help page explains how to handle a TreeView control by programming.

Notes:

  • Several WLanguage functions are specific to the management of TreeView controls. See the functions for managing the TreeView controls for more details.
  • You also have the ability to handle an element found in a TreeView control by programming. See Handling an element of a TreeView control by programming for more details.
  • 16版本和更高版本
    WinDev A TreeView control can also be linked to a data file or to a variable.
    16新版本
    WinDev A TreeView control can also be linked to a data file or to a variable.
    WinDev A TreeView control can also be linked to a data file or to a variable.

Initializing a TreeView control

Filling a treeview

To initialize a TreeView control, all you have to do is describe all the treeview elements with 树视图添加.

树视图添加TREE_RecipeTV"Recipe"+TAB+"Dessert""CAKE-.BMP""CAKE-.BMP"
树视图添加TREE_RecipeTV"Recipe"+TAB+"Dessert"+TAB+"Ice cream"
树视图添加TREE_RecipeTV"Recipe"+TAB+"Dessert"+TAB+"Ice cream"+TAB+...
"Vanilla""NEXT5-.BMP"
树视图添加TREE_RecipeTV"Recipe"+TAB+"Dessert"+TAB+"Ice cream"+TAB+...
"Strawberry""NEXT5-.BMP"
树视图添加TREE_RecipeTV"Recipe"+TAB+"Dessert"+TAB+"Ice cream"+TAB+...
"Chocolate""NEXT5-.BMP"
树视图添加TREE_RecipeTV"Recipe"+TAB+"Dessert"+TAB+"Cup"
树视图添加TREE_RecipeTV"Recipe"+TAB+"Dessert"+TAB+"Cup"+TAB+...
"Peach Melba""NEXT5-.BMP"
树视图添加TREE_RecipeTV"Recipe"+TAB+"Dessert"+TAB+"Cup"+TAB+...
"Cherry Garcia",...
"NEXT5-.BMP"
树视图添加TREE_RecipeTV"Recipe"+TAB+"Dessert"+TAB+"Cup"+TAB+...
"Colonel""NEXT5-.BMP"
树视图添加TREE_RecipeTV"Recipe"+TAB+"Dessert"+TAB+"Apple pie"
树视图添加TREE_RecipeTV"Recipe"+TAB+"Dessert"+TAB+"Apple pie"+TAB+...
"with whipped cream""NEXT5-.BMP"
树视图添加TREE_RecipeTV"Recipe"+TAB+"Dessert"+TAB+"Apple pie"+TAB+...
"with apple brandy""NEXT5-.BMP"
树视图添加TREE_RecipeTV"Recipe"+TAB+"Dessert"+TAB+"Crème brûlée",...
"NEXT5-.BMP"
树视图添加TREE_RecipeTV"Recipe"+TAB+"Dessert"+TAB+"Meringue with cream",...
"NEXT5-.BMP"
树视图展开TREE_RecipeTV"Recipe"
19版本和更高版本
WinDev Note: To optimize the filling of a TreeView control, you have the ability to use ..添加子元素 on the rows of the TreeView control. This property is used to define the procedure that will be run to fill the level to expand. The search for children and the fill of children are performed only when the user wants to see them.
19新版本
WinDev Note: To optimize the filling of a TreeView control, you have the ability to use ..添加子元素 on the rows of the TreeView control. This property is used to define the procedure that will be run to fill the level to expand. The search for children and the fill of children are performed only when the user wants to see them.
WinDev Note: To optimize the filling of a TreeView control, you have the ability to use ..添加子元素 on the rows of the TreeView control. This property is used to define the procedure that will be run to fill the level to expand. The search for children and the fill of children are performed only when the user wants to see them.

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

Using properties on a TreeView control

Example: How to find out the number of elements in a TreeView control:

跟踪TREE_MyTreeView..数目)

Example: How to modify the size of the font for all the elements of a TreeView control:

TREE_MyTreeView..字体大小=14