Now maybe you can help me with this.. cuz I'm just starting off on LISTVIEWS and sense I havnt had any exsperince in it, I'm not sure exactly how it all works. But besides that I am able to create a list view.
alias channels { if ($dialog(chan)) dialog -x chan chan | dialog -ma chan chan }
dialog chan {
title "Channels"
size -1 -1 200 90
option dbu
list 1, 0 0 200 80, size
button "Join", 2, 162 80 37 10
edit "", 3, 0 80 160 10, read autohs
}
on *:dialog:chan:init:*:{
mdx SetMircVersion $version
mdx MarkDialog $dname
mdx SetControlMDX 1 ListView report nosortheader rowselect single > $view
did -i $dname 1 1 headerdims 250:2 100:1
did -i $dname 1 1 headertext Topic $+ $chr(9) $+ Room
list
}
on *:dialog:chan:sclick:1:{
if ($me ison $did(1).seltext) { .did -ra $dname 3 Your on that channel. }
else { .did -ra $dname 3 Your not on that channel. }
}
on *:dialog:chan:sclick:2:{ .join $did(1).seltext }
raw 322:*:{ if ($dialog(chan)) { .did -a chan 1 $5- $+ $chr(9) $+ $2 } }
raw 323:*:{ if ($dialog(chan)) { .window -c "Channels List" } }
^ I'm not sure how to make it bring the chan up. Becuase of the topic and all the 0 0 0 +fs code comes up.