
This method sets the unselected and selected images of any tree item.
Returns the following according to the situation:
The recommended convention is passing the control identifier directly:
Copy Code |
|---|
(Odcl_Tree_SetItemImages MyControlReference [as Reference] Key [as String or Tree Node Handle] ImageIndex [as Integer] [Optional] SelectedImageIndex [as Integer]) |
An alternative convention is to identify the control by providing the project file, the dialog name and the control name:
Copy Code |
|---|
(Odcl_Tree_SetItemImages ProjectFile [as String] DialogName [as String] ControlName [as String] Key [as String or Tree Node Handle] ImageIndex [as Integer] [Optional] SelectedImageIndex [as Integer]) |
Copy Code |
|---|
; Set the new image index to give this tree item a distinct look (Odcl_Tree_SetItemImages MyProject_MyForm_MyControl "C_Documents and Settings" 5) |
Tree_GetItem, Tree_GetItemData, Tree_GetItemImages, Tree_GetItemText, Tree_SetItemData, Tree_SetItemText