Reacting to the user cancelling a print job

Mark Schonewille m.schonewille at economy-x-talk.com
Fri Dec 2 05:12:59 CST 2011


Ben,

I have had this problem too and solved it. Please post your script.

--
Best regards,

Mark Schonewille

Economy-x-Talk Consulting and Software Engineering
Homepage: http://economy-x-talk.com
Twitter: http://twitter.com/xtalkprogrammer
KvK: 50277553

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?
> 
> TIA
> 
> Ben




More information about the use-livecode mailing list