Luke,
 
Thanks for the info on configuration of buttons.
 
Now as to my first question:
 
am attempting to put a stop button on a vtcl interface to halt the
execution of a routine running under vtcl, but the exit command
seems to be disabled...is there any way around this?
 
initially stopRequested is set to 0
 
attached by command attribute  to the stop button is:
set stopRequested 1
 
at a logical point in my routine, procedure CheckStop is called
 
proc CheckStop
# preCondition stopRequested == 0 ~ no stop / stopRequested == 1 ~ stop program
# postCondition exits program if stopRequested is true
global widget
global stopRequested
    update idletasks
    if {$stopRequested} {
        Debug 3 "stopRequested is $stopRequested"; # calls debugging procedure
        exit
    };# end if
 
if stopRequested is true, i need the entire wish to stop...i have routines nested in routines calling routines recursively, and need a global break if stopRequested is set to 1
 
How do I do this???
 
If anyone knows how to accomplish this,
I would greatly appreciate your input.
 
Thanks,
Brent
 
Brent Maxwell
Wayne State University

Reply via email to