The only way I found that works and solves the problem is this:
Code
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 }
    }
  }
}

However, this is not a perfect solution and may fail in some circumstances.

Last edited by TECO; 28/04/26 10:03 AM.

TECO
irc.PTirc.org (Co-Admin)