Library stack does not get "closeStackrequest"?

LiveCode is the premier environment for creating multi-platform solutions for all major operating systems - Windows, Mac OS X, Linux, the Web, Server environments and Mobile platforms. Brand new to LiveCode? Welcome!

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

Post Reply
rozek
Posts: 151
Joined: Mon Jun 19, 2006 2:29 pm
Contact:

Library stack does not get "closeStackrequest"?

Post by rozek » Thu Jun 19, 2008 9:13 am

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?
Kind regards,

Andreas Rozek

rozek
Posts: 151
Joined: Mon Jun 19, 2006 2:29 pm
Contact:

Post by rozek » Thu Jun 19, 2008 9:26 am

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?
Kind regards,

Andreas Rozek

rozek
Posts: 151
Joined: Mon Jun 19, 2006 2:29 pm
Contact:

Post by rozek » Thu Jun 19, 2008 9:33 am

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...
Kind regards,

Andreas Rozek

rozek
Posts: 151
Joined: Mon Jun 19, 2006 2:29 pm
Contact:

Post by rozek » Fri Jun 20, 2008 12:02 pm

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.
Kind regards,

Andreas Rozek

Post Reply