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
When fillilng a TreeView 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 treeview can be:
  • collapsed (image of closed folder by default).
  • expanded (image of opened folder by default).
These images can be modified by programming.
Note: The image proposed by default for the elements found in a TreeView control can also be modified by programming with ..CollapsedImage and ..ExpandedImage.
Method
To modify the images representing the collapsed or expanded element, the requested images must be specified in TreeAdd and TreeInsert.
The syntax for TreeAdd is as follows:
TreeAdd(<TreeView Name>, <Element>, <Name of Collapsed Image>, <Name of Expanded Image>)
Code sample:
TreeAdd(TREE_Product, "Man", "M1.jpg", "M2.jpg")
TreeAdd(TREE_Product, "Woman", "W1.jpg", "W2.jpg")


TreeAdd(TREE_Product, "Man" + TAB + "Trousers", "trousers.JPG", "trousers.JPG")
TreeAdd(TREE_Product, "Man" + TAB + "Jacket", "jacket.JPG", "jacket.JPG")
TreeAdd(TREE_Product, "Man" + TAB + "Shoes", "shoesM.JPG", "shoesM.JPG")
TreeAdd(TREE_Product, "Woman" + TAB + "Dress", "dress.JPG", "dress.JPG")
TreeAdd(TREE_Product, "Woman" + TAB + "Pullover", "pullover.JPG", "pullover.JPG")
TreeAdd(TREE_Product, "Woman" + TAB + "Shoes", "shoesW.JPG", "shoesW.JPG")
Minimum required version
  • Version 9
This page is also available for…
Comments
Click [Add] to post a comment