/help /did -a
/help on dialog
[/code]
alias test dialog -m blah blah
dialog blah {
title "my test"
size 1 1 200 500
list, 12, 0 0 200 500
}
on *:dialog:blah :*:*: {
if ( $devent == init ) {
did -a $dname 12 item1
did -a $dname 12 item2
}
else if ( $devent == sclick ) {
if ( $did == 12 ) {
echo -s I clicked on list item $did($dname,$did).sel
}
}
}
[code]