PC SOFT

ONLINE HELP
FOR WINDEV, WEBDEV AND WINDEV MOBILE

Home | Sign in | English US
  • Node to Expand
  • Selection bar
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
Expands a node in a TreeView control. The "child" elements (nodes or leaves) of this node become visible.
Example of TreeView control:
Vocabulary linked to a TreeView control
Reminder: At run time, a node is expanded when the node name is preceded by "-".
Example
// Expands the "Desserts" node in the "TREE_RecipeTV" treeview
Res = TreeExpand(TREE_RecipeTV, "Recipes" + TAB + "Desserts")
Syntax
<Result> = TreeExpand(<TreeView Control> , <Node to Expand>)
<Result>: Boolean
  • True if the node was expanded,
  • False otherwise.
<TreeView Control>: Control name
Name of TreeView control to use.
<Node to Expand>: Character string
Path of node to expand. This parameter has the following format:
"<Name of Root>" + TAB + ["<Name of 1st Node>" + TAB + ...
["<Name of 2nd Node>" + TAB + [...]]]"<Leaf Name>"

In case of duplicates on a path element, this path can contain the element identifier (specified at the end of its name by TreeID).
Remarks

Node to Expand

If the node to expand:
  • is not found, TreeExpand returns False.
  • is a leaf, TreeExpand returns True.
  • is already expanded, TreeExpand returns True.
  • is not visible, TreeExpand makes this node visible. Its "parent" and "sibling" elements are also displayed. The "parent" elements are expanded.
Versions 19 and later
During the call to TreeExpand, if the specified branch includes a procedure associated by ..AddChildDelayed, this procedure will be run.
New in version 19
During the call to TreeExpand, if the specified branch includes a procedure associated by ..AddChildDelayed, this procedure will be run.
During the call to TreeExpand, if the specified branch includes a procedure associated by ..AddChildDelayed, this procedure will be run.

Selection bar

TreeExpand does not modify the position of the selection bar.
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