I'm not sure if this is possible.. but I'm trying to make the dialog like a chat.. I'm not sure if I messed up on the coding, if you can help me that would be great. Thanks;
dialog chat {
title "Chat"
size -1 -1 309 167
option dbu
list 1, 248 15 57 130, size vsbar
button "Refresh", 2, 258 148 37 12, flat
edit "", 5, 8 134 205 11, multi return autohs
list 3, 8 15 239 119, size
button "Send", 6, 214 135 31 9
text "Room Name", 4, 9 5 30 8, center
list 7, 39 5 71 8, size
text "Users", 8, 247 5 16 8, center
button "x", 10, 296 2 9 8, ok
list 9, 263 5 18 8, size
}
on *:dialog:chat:sclick:3: { $chan $active }
on *:dialog:chat:sclick:6: { set %chat.chat $did($dname,5).text | msg $active $did(2).seltext %chat.chat }
on *:dialog:chat:sclick:9: { $did(9).seltext $nick($active,0) }
on *:dialog:chat:init:0:{
var %1 1
while (%1 <= $nick($active,0)) {
did -a $dname 1 $nick($chan($active),%1)
inc %1
}
}
on *:dialog:chat:sclick:2:{
did -r chat 1
var %1 1
while (%1 <= $nick($active,0)) {
did -a $dname 1 $nick($chan($active),%1)
inc %1
}
}
on ^*:TEXT:*:#: {
did -a $dname 3
.timernicks -m 1 1 showtext
}
alias showtext {
did -a $dname 3
var %usr.txt $4-
did -a $dname 3 + $dc.decode($nick) $chr(58) %usr.txt
}
menu menubar {
Chat:/dialog -md chat chat
-
}