1. Using image lists in win32lib.ew

I want to add image lists to a tree control I am using in a Windows EUPHORIA program. The documentation surrounding ImageLists topic mentions four functions:

  1. func addDIB( hBmp ) Adds DIB's to win32lib's imagelists
  2. func addEuBmp( bmp ) Adds EuBitmaps to win32lib's imagelists
  3. func addIcon( hIcon ) Adds icons to win32lib's imagelists
  4. func addXpm( xpm ) Adds xpm's to win32lib's imagelists

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?

  1. proc setImageList( integer id, atom IL, atom size )

Shawn Pringle

new topic     » topic index » view message » categorize

2. Re: Using image lists in win32lib.ew

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 message » categorize

Search



Quick Links

User menu

Not signed in.

Misc Menu