Hi There,
I have a certain proc from where i want to open a dialog box requiring a user to choose an option. Once the user has hit the button, i set a variable and my initial proc should continue where it has left off (opened the window).
I tried this with this code:
show window and wait for action:
And below proc gets triggered when the OK button on the window is hit:
And now what's happening (only on certain machines apparently) is that the application just hangs and windows says "not responding" - how come? Is this an undefined condition or something? What's going wrong here? I just realized that this is happening today for the first time just on my machine apparently - and yes, i have rebooted!
Thanks!
Ron
Hours of planing can save weeks of coding
I have a certain proc from where i want to open a dialog box requiring a user to choose an option. Once the user has hit the button, i set a variable and my initial proc should continue where it has left off (opened the window).
I tried this with this code:
show window and wait for action:
Code:
set finaltest::Order_Select_done 0
wm deiconify .winOrder
vwait finaltest::Order_Select_done
wm withdraw .winOrder
And below proc gets triggered when the OK button on the window is hit:
Code:
proc finaltest::Order_Indicate {} {
if {($finaltest::Order_value == 1) || ($finaltest::Order_value == -1)} {
#GUI::Info_DialogWIN "finaltest::Order_value: $finaltest::Order_value"
set finaltest::Order_Select_done $finaltest::Order_value
set finaltest::Order_value 0
return 0
} else {
GUI::Error_DialogWIN "FatalError:\n finaltest::Order_value: $finaltest::Order_value"
return 1
}
}
Thanks!
Ron
Hours of planing can save weeks of coding