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 and all its child elements in a TreeView control.
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
// All child elements are also expanded
Res = TREE_RecipeTV.ExpandAll("Recipes" + TAB + "Desserts")
Syntax
<Result> = <TreeView control>.ExpandAll([<Node to expand>])
<Result>: Boolean
  • True if the node and its child elements have been expanded,
  • False otherwise.
<TreeView control>: Control name
Name of TreeView control to use.
<Node to expand>: Optional character string
Path of node to expand (as well as its child elements). This parameter has the following format:
"<Name of root>" + TAB + ["<Name of 1st node>" + TAB + ...
["<Name of 2nd node>" + TAB + [...]]]"<Leaf name>"
If this parameter is not specified, the TreeView control is expanded from the root.
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, <TreeView>.ExpandAll returns False.
  • is not specified, <TreeView>.ExpandAll returns True and the TreeView control is expanded from its root.
  • is a leaf, <TreeView>.ExpandAll returns True.
  • is already expanded, <TreeView>.ExpandAll returns True and the child elements are expanded if necessary.
  • is not visible, <TreeView>.ExpandAll makes this node visible. Its "parent" and "sibling" elements are also displayed. The "parent" elements are expanded.
Versions 20 and later
During the call to <TreeView>.ExpandAll, if the specified branch and/or its children include a procedure associated by ..AddChildDelayed, this procedure will be run.
New in version 20
During the call to <TreeView>.ExpandAll, if the specified branch and/or its children include a procedure associated by ..AddChildDelayed, this procedure will be run.
During the call to <TreeView>.ExpandAll, if the specified branch and/or its children include a procedure associated by ..AddChildDelayed, this procedure will be run.

Selection bar

<TreeView>.ExpandAll does not modify the position of the selection bar.
Component : wd240obj.dll
Minimum version required
  • Version 23
This page is also available for…
Comments
Click [Add] to post a comment