Hi,

I tried the "closerequest" as it is described in the following Technote: (<
http://www.macromedia.com/cfusion/knowledgebase/index.cfm?id=tn_19196>)

 "Capturing quit (exit) requests when exitLock is enabled

The On closeRequest event handler contains statements that run when a user
has attempted to close the projector. This handler is triggered when a user
attempts to close the projector, but only if the exitLock property is set to
true.

Developers can use this handler to create quit/exit dialog boxes, which
allows users to confirm they really want to quit the projector. If the users
confirm they want to exit, then a Halt or Quit command can be executed to
exit the projector. "

All works fine with this code:

on startmovie
  OK = baRegister("Michael Felstau", xxxxxx)
  _movie.exitLock = TRUE
end startmovie

on closeRequest
  set Answer = baMsgBox( "Do you want to exit?", "Shut down the programm?" ,
"YesNo", "Question" , 0 )
  if Answer = "Yes" then
    _player.quit()
  else
    _movie.stopEvent()
  end if
end closeRequest

But if I press "ALT+F4" and want to cancel it with clicking on "no", the
messagebox appears a second time. To cancel the event I have to say "No"
twice.

All other Keys (ESC, STRG+ Q ...) are working fine!

Why is this so?
Are there two closeRequest events?
Is this a bug?

Regards

Michael

[To remove yourself from this list, or to change to digest mode, go to 
http://www.penworks.com/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