ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Help / How to proceed? / Programming
  • Method
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
How to associate an image with an element found in a TreeView Table?
When filling a TreeView Table control, an image is associated with each element. It is a small symbol representing an opened or closed folder. Indeed, each level and each element of the hierarchy can be:
  • collapsed (image of closed folder by default).
  • expanded (image of opened folder by default).
These images can be modified through programming.
Method
To modify the images representing the "collapsed" or "expanded" element, use the CollapsedImage and ExpandedImage properties. The following syntax allows you to use these properties:
<TreeView Table name>[Row index].CollapsedImage = <Image name>
<TreeView Table name>[Row index].ExpandedImage = <Image name>
Code samples:
TVT_Product[10]..CollapsedImage = "ProductNormalPrice.jpg"
TVT_Product[11]..CollapsedImage = "ProductBargainPrice.jpg"
Minimum version required
  • Version 11
This page is also available for…
Comments
Click [Add] to post a comment

Last update: 10/27/2022

Send a report | Local help