Valhalla Legends Archive

Programming => Battle.net Bot Development => Topic started by: CrAz3D on August 21, 2003, 05:11 PM

Title: ListView, Client, & Flags
Post by: CrAz3D on August 21, 2003, 05:11 PM
(vb6)
I am not able to add the user gainning ops with their full information, ie. Ping & Lag Icons, as if they had no  ops.  This only occures if I place the user gainning ops as index 1 on the listview, it works if I place them as index 2.

Anybody have any ideas of what I could change to fix this?...
Title: Re:ListView, Client, & Flags
Post by: Skywing on August 21, 2003, 06:00 PM
Quote from: CrAz3D on August 21, 2003, 05:11 PM
(vb6)
I am not able to add the user gainning ops with their full information, ie. Ping & Lag Icons, as if they had no  ops.  This only occures if I place the user gainning ops as index 1 on the listview, it works if I place them as index 2.

Anybody have any ideas of what I could change to fix this?...
Not only is your problem description not very clear, but you did not post your code.  It's highly doubtful that anybody will be able to help you until you give more information.
Title: Re:ListView, Client, & Flags
Post by: Grok on August 21, 2003, 07:41 PM
How you add the listview entry should not change just because the user has ops.  The only thing you should change is the sort column's value.

Blizzard > BnetAdmins > Ops > *(ByJoinOrder)

or something like that.
Title: Re:ListView, Client, & Flags
Post by: CrAz3D on August 21, 2003, 09:47 PM
my bad on code part

   If Flags = 2 Then
       With Form1.RoomList
           usrIndex = Form1.RoomList.FindItem(Username).Index
           .ListItems.Remove usrIndex
           .ListItems.add 1, , Username, , Icon
           .ListItems(.ListItems.Count).ListSubItems.add , , , LagIcon
           .ListItems(.ListItems.Count).ListSubItems.add , , Ping
       End With
   Else
       With Form1.RoomList
           usrIndex = Form1.RoomList.FindItem(Username).Index
           .ListItems.Remove usrIndex
           .ListItems.add usrIndex, , Username, , Icon
           .ListItems(.ListItems.Count).ListSubItems.add , , , LagIcon
           .ListItems(.ListItems.Count).ListSubItems.add , , Ping
       End With
   End If
Title: Re:ListView, Client, & Flags
Post by: CrAz3D on August 21, 2003, 10:11 PM
nvm, got it
Title: Re:ListView, Client, & Flags
Post by: Skywing on August 21, 2003, 11:16 PM
Note that you should use If Flags And 2 and not If Flags = 2.  Otherwise, you won't properly detect operators without UDP support, squelched operators, etc...