LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

list box with icons before the Items

Hello

I have the following Question. I want to create a List box entry with an Icon before the Label text.

With the command "SetListItemImage" I can places an image in a list control at the left-hand side of the line. Now the problem is that I can’t choose other images as the predetermined pictures. How can I place other Images in a List box?

 

Thanks in advance

0 Kudos
Message 1 of 4
(3,009 Views)
Good question! Up to CVI 8.5 I'm not aware of a way to insert an image different from the predefined ones. I too would like to know if there is a way to do so...


Proud to use LW/CVI from 3.1 on.

My contributions to the Developer Community
________________________________________
If I have helped you, why not giving me a kudos?
0 Kudos
Message 2 of 4
(3,004 Views)
I'd be inclined to look at using a tree control instead of a list box. Despite its name, a tree control can be made to look very much like a list box, and it has the capability for a custom image list. It has other nice features as well :smileyhappy:
--
Martin
Certified CVI Developer
0 Kudos
Message 3 of 4
(2,990 Views)
Check out the sample code in \samples\userint\treeList.prj. It has images and shows how a tree can be configured to look like a list.
0 Kudos
Message 4 of 4
(2,976 Views)