Suffering from a Brain Fart...
ambassador at fourthworld.com
Tue Nov 22 17:16:37 EST 2016
Paul Dupuis wrote:
> I was to open a modal dialog from a single handler and continue the
> handler, updating certain information in a dialog, in a repeat loop.
> The 'modal <stack>' command pauses the handler execution until the
> dialog is closed (presumably from a button in the dialog itself).
> Therefore I need to open the dialog with something other than the
> modal command?
> I have done this before, but for whatever reasons, I can not remember
> how to do it nor can I find any sample code in any of my stacks where
> I have done this.
I usually prefer to break up the handler for code flow simplicity, but
IIRC you should be able to open the dialog invisibly, then show it and
go to it "as modal" and it'll retain the modal layering while allowing
the current handler to keep running.
It's been a long time since I've tried that, though, and with all the
event changes for Cocoa I wouldn't be surprised if the event management
was tightened up a bit since then.
Fourth World Systems
Software Design and Development for the Desktop, Mobile, and the Web
Ambassador at FourthWorld.com http://www.FourthWorld.com
More information about the Use-livecode