Valhalla Legends Archive

Programming => Battle.net Bot Development => Topic started by: gosu on May 26, 2003, 03:24 PM

Title: I'm having trouble setting a certain forecolor for user list
Post by: gosu on May 26, 2003, 03:24 PM
what i am trying to accomplish is to add a specific color for each user, for example, if someone had the icon "SEXP" or the flag "13" then it will add the user to the list with the designated color.  i'm not getting any luck with this, any suggestions?

i tried:

   If StrFlag = "1" Then
   Users.ListItems(1).ForeColor = vbYellow
   ElseIf StrFlag = "13" Then
   Users.ListItems(1).ForeColor = vbWhite
   ElseIf StrFlag = "9" Then
   Users.ListItems(1).ForeColor = vbBlue
   End If


and:

   If Icon = "SEXP" Then
   Users.ListItems(1).ForeColor = vbYellow
   ElseIf Icon = "D2XP" Then
   Users.ListItems(1).ForeColor = vbWhite
   ElseIf Icon = "STAR" Then
   Users.ListItems(1).ForeColor = vbBlue
   End If
Title: Re:I'm having trouble setting a certain forecolor for user list
Post by: OcTaViuS on May 26, 2003, 06:37 PM
there is no ForeColor option for ListItems
Title: Re:I'm having trouble setting a certain forecolor for user list
Post by: gosu on May 26, 2003, 06:43 PM
that explains why.. heh   thanks
Title: Re:I'm having trouble setting a certain forecolor for user list
Post by: Tazo on May 26, 2003, 06:44 PM
There is if you're using a listview..