PC SOFT

ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Home | Sign in | English EN
  • A collapsed or expanded node can be visible or not
  • Selection bar
  • Runtime speed
WINDEV
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac CatalystUniversal Windows 10 App
Others
Stored procedures
Returns the status of a node in a Treeview Table control: collapsed, expanded or not found.
Reminder: At runtime, a node is expanded when the node name is preceded by "-".
Versions 18 and later
Windows This function is now available for WEBDEV sites in Windows.
New in version 18
Windows This function is now available for WEBDEV sites in Windows.
Windows This function is now available for WEBDEV sites in Windows.
Example
// Etat d'un noeud
SELON TABLEH_Planning.EtatElément("Racine" + TAB + "Noeud" + TAB + "Feuille2")
CAS taErreur: Trace("Le noeud n'existe pas.")
CAS taDéroulé: Trace("Le noeud est déroulé.")
CAS taEnroulé: Trace("Le noeud est enroulé.")
FIN
Syntax

Status of a node by specifying the row number Hide the details

<Result> = <TreeView Table control>.ItemStatus([<Row number>])
<Result>: Integer constant
Status of specified node:
taExpandThe node is expanded
taCollapseThe node is collapsed
taErrorNoeud NotFound
<TreeView Table control>: Control name
Name of TreeView Table control to use.
<Row number>: Optional integer
Number of the row containing the node to use. If this parameter is not specified, the status of the node found in the current row is returned.

Status of a node by specifying its name Hide the details

<Result> = <TreeView Table control>.ItemStatus([<Node name>])
<Result>: Integer constant
Status of specified node:
taExpandThe node is expanded
taCollapseThe node is collapsed
taErrorNoeud NotFound
<TreeView Table control>: Control name
Name of TreeView Table control to use.
<Node name>: Optional character string
Name of node to use. This parameter has the following format:
"<Nom de la racine>" + TAB + ["<Nom du 1er noeud>" + TAB + ...
["<Nom du 2ème noeud>" + TAB + [...]]]"<Nom de la feuille>"
A WLanguage error occurs if this parameter does not correspond to an existing branch.
If this parameter is not specified, the status of the node found in the current row is returned.
Remarks

A collapsed or expanded node can be visible or not

The status returned corresponds to the internal status of the element. An expanded element is not necessarily visible because one of its parents may be collapsed.
For example: If the node "Recipes" + TAB + "Desserts" is collapsed, the node" Recipes" + TAB + "Desserts" + TAB + "Ice creams" can be collapsed or expanded.

Selection bar

<TreeView Table>.ItemStatus does not modify the position of the selection bar.

Runtime speed

The runtime speed of syntax 1 is faster than the runtime speed of syntax 2.
Component: wd270obj.dll
Minimum version required
  • Version 23
This page is also available for…
Comments
Click [Add] to post a comment