PC SOFT

ONLINE HELP
FOR WINDEV, WEBDEV AND WINDEV MOBILE

Home | Sign in | English US
  • Node to Collapse
  • 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
Collapses a branch that was expanded beforehand. The "child" nodes are no longer visible in the TreeView control. The child nodes remain in their previous status (collapsed or expanded).
Example of TreeView control:
Vocabulary linked to a TreeView control
Reminder: At run time, a node is collapsed when the node name is preceded by "+".
Example
// Collapses the "Desserts" node in the "TREE_RecipeTV" treeview
Res = TreeCollapse(TREE_RecipeTV, "Recipes" + TAB + "Desserts")
Syntax
<Result> = TreeCollapse(<TreeView Control> , <Node to Collapse>)
<Result>: Boolean
  • True if the node was collapsed,
  • False otherwise.
<TreeView Control>: Control name
Name of TreeView control to use.
<Node to Collapse>: Character string
Path of node to collapse. 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 Collapse

If the node to collapse:
  • is not found, TreeCollapse returns False.
  • is a leaf, TreeCollapse returns True.
  • is already collapsed, TreeCollapse returns True.

Selection bar

  • If the selection bar was positioned on one of the elements of the node to collapse, the bar is positioned on the collapsed node after the call to TreeCollapse.
  • The modification code is called whenever the selection bar is moved. If two levels are collapsed and if the selection bar is positioned on the higher node, the modification codes of each level are run.
  • The full path of the selected element is returned by TreeSelect.
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