Re: Using image lists in win32lib.ew
- Posted by mattlewis (admin) Nov 18, 2011
- 1010 views
SDPringle said...
None of these functions returns an image list needed by the procedure, setImageList. There must be some other function to add the return values of the above functions to an image list. It's just not under the 'Image Lists' topic. Does anyone know what that routine is called?
You use the return values of those functions as parameters to addTVItem().
--/topic TreeView Control --/func addTVItem( integer id, atom iImage, atom iSelectedImage, sequence text, integer iParent ) --/desc Add an item to a /TreeView --/ret Index to item. -- /li /b id: /TreeView to add to -- /li /b iImage: Index to default image -- /li /b iSelectedImage: Index to image for when item is selected -- /li /b text: String of text to be displayed for item -- /li /b iParent: index of parent item. Should be 0 if item is at root. -- See /addIcon, /addEuBmp, /addXpm, /addDIB for information on -- using images with /TreeViews.
You can look at the ListTreeView.exw demo for examples.
Matt