Suffering from a Brain Fart...

Roger Guay irog at mac.com
Tue Nov 22 19:35:14 EST 2016


I often use a script like this at the stack level, but I’m sure I’m missing your point.

on controlKeyDown pKey

if pKey = "e" then set the style of stack "TextOmatic" to topLevel

if pKey = "p" then set the style of stack "TextOmatic" to palette

end controlKeyDown


Roger




> On Nov 22, 2016, at 4:04 PM, Bob Sneidar <bobsneidar at iotecdigital.com> wrote:
> 
> THAT is interesting! Out of curiosity, I wonder if a stack can then go to itself non-modally! I've often wanted to have a menu item that can de-modalize an open stack so I can step through the code when troubleshooting.
> 
> Bob S
> 
> 
> On Nov 22, 2016, at 14:16 , Richard Gaskin <ambassador at fourthworld.com<mailto:ambassador at fourthworld.com>> wrote:
> 
> 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.
> 
> --
> Richard Gaskin
> 
> _______________________________________________
> use-livecode mailing list
> use-livecode at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode




More information about the Use-livecode mailing list