Dismiss a modal stack?

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
Peregrine
Posts: 53
Joined: Sun Jan 10, 2010 10:33 pm
Contact:

Dismiss a modal stack?

Post by Peregrine » Sun Jan 10, 2010 10:48 pm

Help!
I have a mainstack with a substack. I intend to use the substack as a tool palette, eventually. I mistakenly thought to open it as a modal stack (I was thinking about palette and modal and confused the two), so I added something like this to the mainstack script:

Code: Select all

on openStack
    modal substackname...
Now, of course, every time I open my mainstack, the substack pops open... and I have no "close" button on it... so I'm just stuck.
How do I dismiss this substack without a "close" button?
I can't figure out how to get rid of it, so I can keep working on my mainstack.
Any suggestions would be very much appreciated!

(P.S. I've read through the dictionary, User Guide, and several parts of this forum, and I'm still stumped.)
Charles Buchwald
xTalk coding since 1990
Developer of lcResTool and lcMover and other developer tools
https://charlesbuchwald.com

bn
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 4172
Joined: Sun Jan 07, 2007 9:12 pm

Re: Dismiss a modal stack?

Post by bn » Mon Jan 11, 2010 12:58 am

Hi Peregrine,

You can either quit Rev and the restart Rev. In the Development Menu you select Suppress Messages and then you open your mainstack, it should not start the modal substack.
You can also put into the message box: toplevel stack "myModalStack", this should revert the modal state and you can edit your main stack.
If this does not help please come again.
regards
Bernd

Peregrine
Posts: 53
Joined: Sun Jan 10, 2010 10:33 pm
Contact:

Re: Dismiss a modal stack?

Post by Peregrine » Mon Jan 11, 2010 1:29 am

Hallelujah!
Thanks so much for your help, Bernd. That did the trick. And I thought I had maybe lost all that work the most recent version. Thanks!
Charles Buchwald
xTalk coding since 1990
Developer of lcResTool and lcMover and other developer tools
https://charlesbuchwald.com

Post Reply