PC SOFT

WINDEVWEBDEV AND WINDEV MOBILE
ONLINE HELP

Home | Sign in | English UK
  • 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
// Expand the "Desserts" node in the "TREE_RecipeTV" TreeView control
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.
Component : wd240obj.dll
Minimum version required
  • Version 9
This page is also available for…
Comments
Click [Add] to post a comment