Re: Using image lists in win32lib.ew

new topic     » goto parent     » topic index » view thread      » older message » newer message
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

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu