ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Help / Developing an application or website / Controls, windows and pages / Controls: Available types / TreeView control
  • Element identifier
  • Associating an identifier with an element
  • Reading the element identifier
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
Associating an identifier with an element found in a TreeView control
Element identifier
WINDEV, WINDEV Mobile and WEBDEV give you the ability to associate an identifier with each element found in a TreeView control. This identifier can be a character string or an integer.
This identifier can be used to store a specific information (number of the record corresponding to the element selected in the TreeView control for example).
Remark: You also have the ability to associate an image with an element. For more details, see Associate an image with the elements.
Associating an identifier with an element
To associate an identifier with an element found in a TreeView control, this identifier must be specified in the following programming functions:
TreeAddAdds a "leaf" element (and all necessary nodes) into a TreeView control.
TreeInsertInserts a leaf into a TreeView control at a specific position.
TreeModifyModifies an element (node or leaf) in a TreeView control.
These functions are also available in prefix syntax:
<TreeView>.AddAdds a "leaf" element (and all necessary nodes) into a TreeView control.
<TreeView>.InsertInserts a leaf into a TreeView control at a specific position.
<TreeView>.ModifyModifies an element (node or leaf) in a TreeView control.
Reading the element identifier
To find out the element identifier, all you have to do is use the following function:
TreeIdentifierReturns the identifier associated with an element (node or leaf) in a TreeView control.
This function is also available in prefix syntax:
<TreeView>.IdentifierReturns the identifier associated with an element (node or leaf) in a TreeView control.
Minimum version required
  • Version 9
This page is also available for…
Comments
Click [Add] to post a comment

Last update: 01/26/2023

Send a report | Local help