To add icons to a tree view:
1. | Use the Windows Designer catalog to open the window or dialog that contains the tree view. |
2. | For the Tree View object, set the Show Icons property on the Visual tab page of the Property Inspector to Yes. |
3. | For each of the Tree View Nodes, set the Image property to determine which icon or bitmap file to display. |
| NOTE: You can define more than one image per tree view node. When a column in the SQL Query of a tree view node has an alias TREE_IMAGE, the value will be transferred to an image and used as the image that is displayed in front of the node. The image properties are still available but a definition of an image in the SELECT list overrules the Image property. |
SELECT <value>, 'NodeImage.ico' "TREE_IMAGE" FROM <table>
|