Valhalla Legends Archive

Programming => General Programming => Topic started by: sPlOrYgOn on July 30, 2003, 08:58 PM

Title: How can you have 1 ListView with 2 ListImages
Post by: sPlOrYgOn on July 30, 2003, 08:58 PM
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!
Title: Re:How can you have 1 ListView with 2 ListImages
Post by: Camel on July 31, 2003, 12:07 AM
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
Title: Re:How can you have 1 ListView with 2 ListImages
Post by: sPlOrYgOn on July 31, 2003, 03:29 PM
That makes all the Icons Product Icons :-\