• Welcome to Valhalla Legends Archive.
 

How can you have 1 ListView with 2 ListImages

Started by sPlOrYgOn, July 30, 2003, 08:58 PM

Previous topic - Next topic

sPlOrYgOn

I've been trying to make 1 ListView with 2 ListImages, 1 ListImage with Product Icons and another with Lag Icons but everything I try doesn't seem to work...
If anyone can help me it'd be great!

Camel

Make sure you have an ImageList with product icons and one with ping icons (they can be the same one). Then set the 'Icons' property of your ListView to the ImageList with the product icons and the 'SmallIcons' property to the ImageList with the ping icons. You will also need two columns: One for the product icon and name, and the other for the ping icon.

   With lvUsers.ListItems.Add(, , sName)
...
       .SmallIcon = GetIcon(StatSTr, Flags) 'this is the product icon
       .ListSubItems.Add , , Ping, LagBars(GetLag(Ping, Flags)) 'this is the lag icon
...
   End With

sPlOrYgOn