[Date Prev][Date Next][Thread Prev][Thread Next] [Search] [Date Index] [Thread Index]

Re: [MacPerl] Mac::Dialogs questions



At 11.02 1998.02.27, Paul DuBois wrote:
>1) How can you make the cursor blink in an edit field?  I've asked this
>before recently, but I don't recall seeing an answer.  My conjecture is
>that you must call TEIdle() during the event loop, but I don't find a way
>to do that.

Just judging from my limited knowledge of Mac OS HIG (human interface
guidelines), I don't recall ever seeing a cursor blink in a standard dialog
box text field; so I don't know that it can or cannot be done, but I am not
sure that it should.


>2) If you create a dialog with MacDialog, display it, then hit command-period
>to terminate the script, the dialog box remains on screen.  Is there a
>way within a script to receive a notification that you've been aborted, so
>that some cleanup can be done?

Sure.  Use the END{} block.  Add this to Alan's GetData.pm:

  END {dispose $dlg}

That should do it.

--
Chris Nandor          mailto:pudge@pobox.com         http://pudge.net/
%PGPKey=('B76E72AD',[1024,'0824 090B CE73 CA10  1FF7 7F13 8180 B6B6'])
#==               New Book:  MacPerl: Power and Ease               ==#
#==    Publishing Date: Early 1998. http://www.ptf.com/macperl/    ==#



***** Want to unsubscribe from this list?
***** Send mail with body "unsubscribe" to mac-perl-request@iis.ee.ethz.ch