PC SOFT

ONLINE HELP
FOR WINDEV, WEBDEV AND WINDEV MOBILE

Home | Sign in | English US
  • Method
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
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 by programming.
Method
To modify the images representing the "collapsed" or "expanded" element, use ..CollapsedImage and ..ExpandedImage. The following syntax allows you to use these properties:
<Name of TreeView Table>[Row Subscript]..CollapsedImage = <Image Name>
<Name of TreeView Table>[Row Subscript]..ExpandedImage = <Image Name>
Code samples:
TVT_Product[10]..CollapsedImage = "ProductNormalPrice.jpg"
TVT_Product[11]..CollapsedImage = "ProductBargainPrice.jpg"
Minimum required version
  • Version 11
This page is also available for…
Comments
Click [Add] to post a comment