Reacting to the user cancelling a print job
m.schonewille at economy-x-talk.com
Fri Dec 2 06:12:59 EST 2011
I have had this problem too and solved it. Please post your script.
Economy-x-Talk Consulting and Software Engineering
Become our partner in sales http://qery.us/1bq Start selling Color Converter today. 20% commission!
On 1 dec 2011, at 18:05, Ben Rubinstein wrote:
> Is there any way to detect that the user is clicking the 'cancel' button on the 'printing' dialog that appears while printing from LiveCode?
> During testing, if I want to cancel an exceptionally long job <cough>infinite loop in code</cough> I'm a bit stuck.
> I can click the 'cancel' button, and the UI reacts (the message above the barber pole changes to "Canceling") but LiveCode doesn't, and I can't figure out where I'd see in code that the user is pressing it. (On the other hand I also can't use command-period to halt the <cough>buggy</cough> script, presumably because the 'printing in progress' dialog catches the keyboard event.)
> Is there a solution to this conundrum?
More information about the Use-livecode