Skip to content
Tcl Source Code Artifact [7a08e03169]
Login

Artifact [7a08e03169]

Artifact 7a08e0316990eee94955c6ffd17c836d45d515c3:

Ticket change [7a08e03169] - Ticket [1499394fffffffff|1499394fff] <i>Script Cancellation with Tcl_CancelEval</i> status still Open with 4 other changes by mistachkin on 2006-06-13 16:01:05.
D 2006-06-13T16:01:05
J icomment \n\nFile\sAdded\s-\s181487:\sscript_cancellation_5.zip\n\nLogged\sIn:\sYES\s\nuser_id=113501\n\n\nUpdated\s(v5)\spatch\ssupports\sa\scustom\serror\smessage\sfor\nscript\scancellation\svia\sTcl_CancelEval\sand\s[cancel].\s\sAlso\ncorrected\smutex\slocking\sissue\swith\sCancelEvalProc.\n\nHere\sis\sa\squick\sTk\sexample\sof\s[cancel]\susage:\n\n----------------------------------------------------\n\npackage\srequire\sTk\n\npack\s[text\s.clock]\s-side\stop\s-expand\strue\s\\\n\s\s\s\s\s\s\s\s-fill\sboth\s-padx\s10\s-pady\s10\n\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\npack\s[button\s.go\s-padx\s10\s-pady\s10\s-text\s"Go"\s\\\n\s\s\s\s\s\s\s\s-command\s[list\sgoButton]]\s\\\n\s\s\s\s\s\s\s\s-side\sleft\s-padx\s10\s-pady\s10\npack\s[button\s.cancel\s-padx\s10\s-pady\s10\s-text\s"Cancel"\s\\\n\s\s\s\s\s\s\s\s-command\s[list\scancelButton\s"clock\sstopped."]]\s\\\n\s\s\s\s\s\s\s\s-side\sright\s-padx\s10\s-pady\s10\n\nproc\sgoButton\s{args}\s{\n\s\swhile\s{1}\s{\n\s\s\s\scatch\s{.clock\sdelete\s1.0\send}\n\s\s\s\s.clock\sinsert\send\s[clock\sformat\s[clock\sseconds]]\n\s\s\s\supdate\n\s\s}\n}\n\nproc\scancelButton\s{msg}\s{\n\s\scancel\s-unwind\s{}\s$msg\n}\n\n
J login mistachkin
J mimetype text/plain
J username mistachkin
K 1499394fffffffffffffffffffffffffffffffff
U mistachkin
Z 9976b13f8176b2a78319bcd5ad99a59b