I'm not sure if this is an answer to your question, but for Windows (only?)
there is an xtra called "quitMessage" that will detect a click on the close
box when the exitLock is true. It sends a system level message which can be
trapped via lingo.

Find it by searching, under "Xtras", at www.mediamacros.com

> There seems to be no way to allow the user to quit by using the system
> Close button, and still trap Esc. You can't trap Esc unless
> exitLock is set
> to true.
>
> I hope that someone proves me wrong, because I would like to trap Esc w/
> disabling the system Close command.

-- the keyDownScript is set to "trapEscape"
on trapEscape
  if the keyCode = 53 then
    alert "User pressed <ESC>"
    stopEvent
  end if
end

Hope that helps,
-Sean.


[To remove yourself from this list, or to change to digest mode, go to
http://www.penworks.com/LUJ/lingo-l.cgi  To post messages to the list,
email [EMAIL PROTECTED]  (Problems, email [EMAIL PROTECTED])
Lingo-L is for learning and helping with programming Lingo.  Thanks!]

Reply via email to