alias listme dialog -m listme listme
dialog listme {
title "listme Box"
size -1 -1 200 100
option dbu
tab "One", 1, 0 0 200 100
tab "Two", 2
list 100, 20 20 160 60, tab 1
button "Add", 900, 30 75 60 10, tab 1
button "Remove", 901, 110 75 60 10, tab 1
list 101, 20 20 160 60, tab 2
button "Add", 902, 30 75 60 10, tab 2
button "Remove", 903, 110 75 60 10, tab 2
}
on *:dialog:listme:init:0:{
did -b listme 901,903
}
on *:dialog:listme:sclick:1:{
did -t listme 100 1
}
on *:dialog:listme:sclick:2:{
did -t listme 101 1
}
on *:dialog:listme:sclick:900:{
if ($cb(0)) {
did -a listme 100 $cb
did -e listme 901
}
}
on *:dialog:listme:sclick:901:{
did -d listme 100 $did(listme,100).sel
if (!$did(listme,100).lines) { did -b listme 901 }
}
on *:dialog:listme:sclick:902:{
if ($cb(0)) {
did -a listme 101 $cb
did -e listme 903
}
}
on *:dialog:listme:sclick:903:{
did -d listme 101 $did(listme,101).sel
if (!$did(listme,101).lines) { did -b listme 903 }
}