[comp.sys.mac.hypercard] Trapping Command-"." during Printing

naomi@jessica.Stanford.EDU (Naomi Takeuchi) (01/25/90)

I'm new at Hypercard, so please excuse this posting if it has been 
addressed previously.  Any input would be well appreciated.  

I currently have a print button that hides the card buttons and 
prints the last two cards of the stack.  Once printing is complete
the buttons are revealed so that the user can navigate through the stack.
The printing is working fine, but if the user types Command-"." during
the printing process, the buttons remain hidden and the user can no longer
navigate through the stack.  Is there a way to trap for the Command-"."
keystrokes to reveal the card buttons again?

Thanks for your help.  

Naomi Takeuchi
--------------

jayvana@wpi.wpi.edu (Jay van Achterberg) (01/25/90)

>> I currently have a print button that hides the card buttons and
>> prints the last two cards of the stack. Once printing is complete
>> the buttons are revealed so that the user can navigate through the
>> stack. The printing is working fine, but if the user types
>> Command-"." during the printing process, the buttons remain hidden
>> and the user can no longer navigate through the stack. Is there a
>> way to trap for the Command-"."

I came across the same problem a while back.  My solution was to make a
background script called "Restore" that would show all the buttons that
were hidden by the printer button.

When the printer button was pressed, I showed the message box and put
Restore into it.  Then, if the user (who is really only me) ever hit
command period, I would see my buttons missing, see the message box with
restore in it, and remember that I just had to hit <return> to re-display
my buttons.  If the user didn't hit command-period, then the printer button
will call the Restore script after it finishes printing.

As long as the user is warned that he/she must hit return if something like
this happens, I'd say that this is an acceptable [:-(] solution to the
problem.

If anyone has better/other solutions, please let me know/post them here!

					-Jay