(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?...
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.
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.
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
nvm, got it
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...