Valhalla Legends Archive

Programming => Battle.net Bot Development => Topic started by: ILurker on April 13, 2003, 07:18 PM

Title: Adding Individual Colors (ListView)
Post by: ILurker on April 13, 2003, 07:18 PM
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.
Title: Re:Adding Individual Colors (ListView)
Post by: ILurker on April 13, 2003, 09:36 PM
I've seen it in many bots such as raibot and fyrebot
Title: Re:Adding Individual Colors (ListView)
Post by: PaiD on April 13, 2003, 09:46 PM
You program it so any lag under 0 or equal to -1 shows the blue lag bar from the imagelist. (from him on aim)
Title: Re:Adding Individual Colors (ListView)
Post by: ILurker on April 13, 2003, 09:51 PM
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.
Title: Re:Adding Individual Colors (ListView)
Post by: dxoigmn on April 13, 2003, 10:08 PM
ListView1.ListItems(1).ForeColor = vbMagenta

Edit:  ListView's are not zero-based  :-\
Title: Re:Adding Individual Colors (ListView)
Post by: ILurker on April 13, 2003, 10:49 PM
Thx
Title: Re:Adding Individual Colors (ListView)
Post by: 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 -_-
Title: Re:Adding Individual Colors (ListView)
Post by: dxoigmn 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?
Title: Re:Adding Individual Colors (ListView)
Post by: drivehappy on April 14, 2003, 04:31 PM
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.
Title: Re:Adding Individual Colors (ListView)
Post by: TheMinistered on April 14, 2003, 04:33 PM
Anything is possible... the question is, does the implementation live up to its expectations.