try using the code
on *:dialog:control:sclick:3:{
tokenize 32 $did($did,1)
if ($1 == tryclose) && (%control.close = yes) {
if ($input(are you sure?,136,close dialog?)) {
dialog -c $dname
unset %control.close
}
}
}
so then what happens is it waits until after the input to reset the thing.. and set the variable on the close event.. so prolly you would put the %control.close = %yes before the input stuff =x |