Sticky Popup Menu?
Scott Rossi
scott at tactilemedia.com
Tue Jan 6 23:00:12 EST 2015
Thanks for this suggestion. This was surprisingly easy to get working, using a global variable to track when a selection is made. The one drawback is, when launched, the palette menu changes window focus from the main stack, which functionally not a big deal, but visually changes the appearance of the titlebar of the main stack.
By any chance is there some decoration setting or similar that would prevent the appearance of the main stack from changing? I tried enabling the systemWindow of the menu stack but the result was the same — focus changes from the main stack.
If there’s some way to maintain the “active” appearance of the main stack while the palette menu is active, this would be a very workable solution.
Thanks & Regards,
Scott Rossi
Creative Director
Tactile Media, UX/UI Design
On Jan 6, 2015, at 5:17 PM, Richard Gaskin <ambassador at fourthworld.com> wrote:
> Scott Rossi wrote:
> > Anyone know if it’s possible to make the menu that’s created using
> > "popup stack …” sticky? So it doesn’t automatically disappear when
> > releasing the mouse?
>
> I've had good luck with borderless palette windows, not using the popup command at all but simply opening them. I trap escapeKey to dismiss them, and close them on suspendStack so clicking anywhere outside of them dismisses them like a menu does.
>
> I use these as flyout panes in the new Devolution 3 in development, and they've been surprisingly satisfying as an alternative to popup stacks.
>
> The old popup command was designed back in the days when all menus were implemented as stacks, so they always dismiss as soon as anything is clicked on.
>
> But with these flyout panes I can have any type of controls I want, and the pane stays up until I either use escape key or click anywhere outside of it. If needed of course you could have a close button as well to cover your bases.
>
> --
> Richard Gaskin
> 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
mailing list