• Welcome to Valhalla Legends Archive.
 

Adding Individual Colors (ListView)

Started by ILurker, April 13, 2003, 07:18 PM

Previous topic - Next topic

ILurker

How could i add a seperate color for each individual client type, for a channel list?
I know how i would specify it, but don't know how to change the color so that one perso has yellow, and another has red.

ILurker

I've seen it in many bots such as raibot and fyrebot

PaiD

You program it so any lag under 0 or equal to -1 shows the blue lag bar from the imagelist. (from him on aim)

ILurker

I'm not talking about the icons... I'm talking about the usernames. Like if a user was diablo 1 he was yellow, then if another was warcraft 3 he was blue.

dxoigmn

#4
ListView1.ListItems(1).ForeColor = vbMagenta

Edit:  ListView's are not zero-based  :-\


Camel

Quote from: kamakazie on April 13, 2003, 10:08 PMEdit:  ListView's are not zero-based  :-\
vb in general is not zero-based :-\
gets very annoying, especially when encrypting crap in arrays -_-

dxoigmn

Quote from: Camel on April 14, 2003, 03:33 PM
Quote from: kamakazie on April 13, 2003, 10:08 PMEdit:  ListView's are not zero-based  :-\
vb in general is not zero-based :-\
gets very annoying, especially when encrypting crap in arrays -_-
Oh it isn't?  I thought all array are zero-based unless you set Option Base 1?  Did I miss something?

drivehappy

Quote from: kamakazie on April 14, 2003, 04:09 PM
Quote from: Camel on April 14, 2003, 03:33 PM
Quote from: kamakazie on April 13, 2003, 10:08 PMEdit:  ListView's are not zero-based  :-\
vb in general is not zero-based :-\
gets very annoying, especially when encrypting crap in arrays -_-
Oh it isn't?  I thought all array are zero-based unless you set Option Base 1?  Did I miss something?
I thought so too.

TheMinistered

#9
Anything is possible... the question is, does the implementation live up to its expectations.