I would like to prevent a dialog from being closed when it's "doing it's work"... It would be nice if haltdef could be used in the sclick event (if the $did == the OK or Cancel $did) to prevent dialogs from closing....
Code:
on *:dialog:Sample:sclick:*:{
  if ($did == 1) && (%InProgress) { haltdef }
}
dialog Sample {
  title "Sample"
  size -1 -1 215 135
  option dbu
  button "&Cancel", 1, 136 119 37 12, cancel hide
}