alias test { dialog -m test test }
dialog test {
title ""
option pixels
size -1 -1 250 99
check "Enable", 1, 12 15 50 16
edit "", 2, 10 32 230 21, disable autohs
button "&OK", 4, 164 66 76 23, ok default
}
on *:dialog:test:*:*:{
if ($devent == sclick) {
if ($did == 1) {
if ($did($did).state) { .timeroff off | did -ve $dname 2 }
else { did -h $dname 2 | .timeroff -h 1 190 did -bv $dname 2 }
}
}
}