PC SOFT

ONLINE HELP
FOR WINDEV, WEBDEV AND WINDEV MOBILE

Home | Sign in | English US
  • Selection bar
  • Processes run
WINDEV
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadApple WatchUniversal Windows 10 AppWindows Mobile
Others
Stored procedures
Selects an element in a TreeView control.
Example of TreeView control:
Vocabulary linked to a TreeView control
Example
// Select the "Desserts" node in the "TREE_RecipeTV" treeview
Res = TreeSelectPlus(TREE_RecipeTV, "Recipes" + TAB + "Desserts")
// Initialize the treeview
TreeAdd(TREE_Treeview1, "Root", tvDefault, tvDefault, "")
TreeAdd(TREE_Treeview1, "Root" + TAB + "Leaf 1", tvDefault, tvDefault, "1")
TreeAdd(TREE_Treeview1, "Root" + TAB + "Leaf 2", tvDefault, tvDefault, "2")
TreeAdd(TREE_Treeview1, "Root" + TAB + "Leaf 3", tvDefault, tvDefault, "3")
TreeAdd(TREE_Treeview1, "Root" + TAB + "Leaf 4", tvDefault, tvDefault, "4")
TreeAdd(TREE_Treeview1, "Root" + TAB + "Leaf 2" + TAB + "Sub leaf 2-1", ...
tvDefault, tvDefault, "5")
TreeAdd(TREE_Treeview1, "Root" + TAB + "Leaf 2" + TAB + "Sub leaf 2-2", ...
tvDefault, tvDefault, "6")
TreeAdd(TREE_Treeview1, "Root" + TAB + "Leaf 2" + TAB + "Sub leaf 2-3", ...
tvDefault, tvDefault, "7")
TreeAdd(TREE_Treeview1, "Root" + TAB + "Leaf 2" + TAB + "Sub leaf 2-4", ...
tvDefault, tvDefault, "8")
TreeAdd(TREE_Treeview1, "Root" + TAB + "Leaf 2" + TAB + "Sub leaf 2-5", ...
tvDefault, tvDefault, "9")

// Select a treeview row
TreeSelectPlus(TREE_Treeview, "Root" + TAB + "Leaf 2" + TAB + "Sub leaf 2-5")
Syntax
<Result> = TreeSelectPlus(<TreeView Control> , <Element Path>)
<Result>: Boolean
  • True if the selection was performed,
  • False if the specified element does not exist.
<TreeView Control>: Control name
Name of TreeView control to use.
<Element Path>: Character string
Full path of element to use. This parameter has the following format:
"<Name of Root>" + TAB + ["<Name of 1st Node>" + TAB + ...
["<Name of 2nd Node>" + TAB + [...]]]"<Leaf Name>"
If duplicates are found for a path element, this path can contain the identifier of the element (specified at the end of its name by TreeID).
Remarks

Selection bar

If the element to select is not visible, the TreeView control is expanded until the element is made visible, then the element is selected.

Processes run

During the call to TreeSelectPlus, the "Displaying a row" and "Selecting a row" processes are not run.
Components
WINDEVReports and Queries wd230obj.dll
WEBDEV - Server code wd230page.dll
Windows Mobile wp230obj.dll
Java wd230java.jar
Linux wd230obj.so
Minimum required version
  • Version 9
This page is also available for…
Comments
Click [Add] to post a comment