all you really need to change is the did -a $dname 3 part. also remove the $chr(9) ... bit. heres the whole code anyway. i was just messing around and made this.
alias mdx_fullpath { return $+(",C:\Documents and Settings\Rhys\My Documents\script\dll\mdx.dll,") }
alias mdx { dll $mdx_fullpath $1- }
alias mdxinit {
 dll $mdx_fullpath SetMircVersion $version
 dll $mdx_fullpath MarkDialog $dname
}
alias nickl { dialog -m nickl nickl }
dialog nickl {
 size -1 -1 128 355
 title "Cust0m Nicklist"
 button "positioner",1001,0 0 0 0
 text "Total Users:",1,2 331 64 12
 text "",2,62 332 41 11
 list 3,0 0 131 331,extsel size
;the button below is auto-created.You can remove it
 button "",1000,0 0 0 0,ok hide
}
on *:dialog:nickl:init:*:{
 mdxinit
 mdx SetControlMDX $dname 1001 positioner  minbox > dll\dialog.mdx
 mdx SetControlMDX $dname 3 ListView report nosortheader rowselect single grid >dll\views.mdx
 did -i $dname 3 1 headerdims 80 45
 did -i $dname 3 1 headertext Nickname $chr(9) Op
 loadnicks
 did -a $dname 2 $nick($active,0)
}
alias loadnicks {
 set %n 0
 :start
 inc %n
 if ($nick($active,%n) isowner $active) {
  did -a $dname 3 $nick($active,%n) $chr(9) +q
  goto start
 }
 if ($nick($active,%n) isop $active) {
  did -a $dname 3 $nick($active,%n) $chr(9) +o
  goto start
 }
 if ($nick($active,%n) isvo $active) {
  did -a $dname 3 $nick($active,%n) $chr(9) +v
  goto start
 }
 if ($nick($active,%n) isreg $active) {
  did -a $dname 3 $nick($active,%n) $chr(9) -
  goto start
 }
}
Edited Feb 27, 2005 9:50 PM by xRhysx