locking up
Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller
locking up
If I user "answer ... " in the handler for the resizeStack message, the answer box shows but I can't dismiss it or continue with anything.
1. Why is this happening? Am I doing something 'unconventional' or what should I know that I don't know?
2. Is there a key combination that will break out of all handlers and let me down easy?
Thanks!
1. Why is this happening? Am I doing something 'unconventional' or what should I know that I don't know?
2. Is there a key combination that will break out of all handlers and let me down easy?
Thanks!
Leston
Re: locking up
Hi Leston,
this is correct behavior for "modal" dialogs!
Any script with an ASK or ANSWER will halt until the dialog is dismissed.
What are you trying to do?
On the Mac (ONLY!) you can:
...
ask "whatever..." AS SHEET
...
which will "pin" the dialog to the "calling" stack/window, the script will halt anyway
ut you can access other stacks like the message box.
Best
Klaus
this is correct behavior for "modal" dialogs!
Any script with an ASK or ANSWER will halt until the dialog is dismissed.
What are you trying to do?
On the Mac (ONLY!) you can:
...
ask "whatever..." AS SHEET
...
which will "pin" the dialog to the "calling" stack/window, the script will halt anyway
ut you can access other stacks like the message box.
Best
Klaus
Re: locking up
Thanks Klaus.
I understand how 'modal' works, but the problem is this:
I click on the 'OK' button in the answer dialog and it DOES NOT dismiss the dialog.
I am working on a Mac, FWIW
I understand how 'modal' works, but the problem is this:
I click on the 'OK' button in the answer dialog and it DOES NOT dismiss the dialog.
I am working on a Mac, FWIW
Last edited by leston12 on Wed May 22, 2013 6:20 pm, edited 1 time in total.
Leston
Re: locking up
Hi Leston,
Best
Klaus
oh, this is very strange indeed!? Sorry, no spontaneous idea...leston12 wrote:...I click on the 'OK' button in the answer dialog and is DOES NOT dismiss the dialog.
Best
Klaus
Re: locking up
Yes it is! Can you replicate this? Try something like:Klaus wrote:oh, this is very strange indeed!? Sorry, no spontaneous idea...
Code: Select all
on resizeStack
answer "Try to close me."
end resizeStack
Leston
Re: locking up
I have a hazy inkling of a memory from my earlier days of MC programming ... alt + alt or something like that .. ???leston12 wrote:2. Is there a key combination that will break out of all handlers and let me down easy?
Is there such a thing still?
Leston
Re: locking up
Hi Leston,
you mean COMMAND + PERIOD.
Tried your script and it looks like "resizestack" is not a good buddy for an "answer" dialog
Yes, locking up here, too, no idea if this is a bug or feature...
Best
Klaus
you mean COMMAND + PERIOD.
Tried your script and it looks like "resizestack" is not a good buddy for an "answer" dialog

Yes, locking up here, too, no idea if this is a bug or feature...
Best
Klaus
Re: locking up
Let's just call it an 'undocumented feature'Klaus wrote:Tried your script and it looks like "resizestack" is not a good buddy for an "answer" dialog
Yes, locking up here, too, no idea if this is a bug or feature...

As always, Thanks for the help!
Leston
Re: locking up
Hi Leston,
I think you want to show the dialog AFTER the resizing has finished, right?
In one of my projects I had to deal with this situation and worked around the problem like this.
1. "SEND" a handler in 100 millisecs:
2. In that namely handler check if the mouse is NOT down -> still resizing!
Tested and works 
Best
Klaus
I think you want to show the dialog AFTER the resizing has finished, right?
In one of my projects I had to deal with this situation and worked around the problem like this.
1. "SEND" a handler in 100 millisecs:
Code: Select all
on resizestack
send "AnswerAfterResizing" to me in 100 millisecs
end resizestack
Code: Select all
command AnswerAfterResizing
if the mouse <> "up" then
exit AnswerAfterResizing
end if
answer "You resized me!"
end AnswerAfterResizing

Best
Klaus