|
Post by Vertigo on Oct 14, 2003 0:45:08 GMT -5
there was a post on here a while ago about this...ive looked really hard but i cant find it..can anyone help me please?
|
|
Ro0t
New Member
bla bla
Posts: 50
|
Post by Ro0t on Oct 14, 2003 4:42:57 GMT -5
|
|
|
Post by Vertigo on Oct 14, 2003 5:09:54 GMT -5
nah its not ...i did look at that one like twice though....it added the owners first..then hosts then voice..then reg...so u didnt have to have the . @ + infront of the nicks...im using a listview with icons btw...
|
|
|
Post by Dangermouse on Oct 14, 2003 10:23:08 GMT -5
|
|
|
Post by Vertigo on Oct 15, 2003 8:00:14 GMT -5
lol thanks danger..but thats not it
|
|
|
Post by AbsoluteGenius on Oct 25, 2003 15:26:58 GMT -5
If it was about how was the best way to sort the listview (and resort when guests where hosted/dehosted etc like in normal web chat (adn of course how I do it)
I remember that post as I am sure i posted a reply on how i did it
however I cant find it anywhere here or on proboards7
i will try again.
I use a listview in report mode
i have 6 columns
Name, Host, RealNick, Image , Ignore, Tag
I set all cols width to zero except the Name column.
when a user joined a room i would find out if they was a guest/with hammer/ with goldhammer / profile icon etc etc and work out what icon to use - having 1 = Gold, 2 = brown , etc so the lower numbers appear first eg
Public Function GetIconIndex(User As MSNUserObject) As Integer GetIconIndex = 0 If User.HostType = htSysop Then GetIconIndex = 6 If User.HostType = htOwner Then GetIconIndex = 1 If User.HostType = htHost Then GetIconIndex = 2 If User.HostType = htSpectator Then GetIconIndex = 3 End Function
I would make the Host column a specific string depeneding on what the results where
a Guest who is hosted Host = String(7 - Len(CStr(nNode.SmallIcon)), "0") & nNode.SmallIcon & "_zzz" & User.RealName (eg :-0000012_zzzDazz)
a hosted non guest chatter Host = String(7 - Len(CStr(nNode.SmallIcon)), "0") & nNode.SmallIcon & "_" & User.RealName (eg :- 0000012_Dazz)
Sysop (always at top of nick list Host = "0000000_" & User.RealName
Then normal non hosted chatters
If Guest Host = "9999990_" & User.RealName and a normal chater non guest , non host Host = "9888880_" & User.RealName
The listview - sorted = True and sort order = 1 (Column number 1 which is the Host col)
I hope this makes sense
|
|
|
Post by Vertigo on Oct 26, 2003 8:44:07 GMT -5
ag, ur brilliant...thanks for sharing that ...will help me heaps and means i can go back to just using the listview....i had 3 seperate listboxes for owner, host and reg and was adding from owner list then host then reg to the listview..so bit slow....
|
|
|
Post by AbsoluteGenius on Oct 26, 2003 12:43:03 GMT -5
My pleasure
|
|
|
Post by Vertigo on Nov 14, 2003 3:06:27 GMT -5
ag, im guessing that nNode is something like dim nNnode as ListItem?
|
|
|
Post by AbsoluteGenius on Nov 14, 2003 13:29:13 GMT -5
yes sorry
Dim nNode As ListItem
|
|
|
Post by Vertigo on Nov 16, 2003 23:59:14 GMT -5
works perfectly..thanks again
|
|