Page 1 of 1

Library stack does not get "closeStackrequest"?

Posted: Thu Jun 19, 2008 9:13 am
by rozek
Hello again (sorry)!

I'm currently implementing a text console as a library stack. If I "start using" that stack, it does not receive any "closeStackRequest" - even if I send it directly to the stack from within the Message Box!!!

(well, and the Application Browser no longer quits as well, grrr, but the Script Editors do)

I'm working within the IDE - that might be important to know (FrontScript catching the event?)

Does anybody have any idea?

Posted: Thu Jun 19, 2008 9:26 am
by rozek
Now I know a bit more:

the Application Browser did not close when I caught the "closeStackRequest" without passing it (I did that for testing purposes - that showed me that my stack receives "closeStackRequest"s from other windows, but not from itself...) After checking "the target" and passing the event if "the target is not me", the Application Browser could be closed again.

But why does the stack not receive its own "closeStackRequest"s?

Posted: Thu Jun 19, 2008 9:33 am
by rozek
Even more:

the "closeStackRequest" is sent to a card rather than a stack, thus I have to determine the stack of "the target" before comparing it to "me".

But this does not solve the problem...

Posted: Fri Jun 20, 2008 12:02 pm
by rozek
I got it!

It's the IDE which causes the trouble: it's frontscript catches the message while it would probably be better to let it be handled by a BackScript.

I'll contact RR.