Window manager plugin?

Richard Gaskin ambassador at fourthworld.com
Sat Aug 23 12:59:39 EDT 2014


Scott Rossi wrote:

> Here's one way to position ask/answer dialogs on desktop:
>
> [ in your stack script ]
>
> on suspendStack
>    if "ask dialog" is among the lines of the openStacks then
>       set the loc of stack "ask dialog" to the loc of me
>    end if
> end suspendStack
>
>
> on suspendStack
>    if "answer dialog" is among the lines of the openStacks then
>       set the loc of stack "answer dialog" to the loc of me
>    end if
> end suspendStack
>
> ( can replace "loc of me" with any desired screenLoc )

On Windows and Linux centering to the topstack is already the default 
behavior.

On OS X, if an alert applies application-wide the HIG suggest the 
standard alert location (horizontally centered, 2/5 of the way down from 
the top vertically).

When you need an answer dialog to apply to a single window, you can get 
both enhanced behavior and window-specific location using the "as sheet" 
modifier:

   answer "Something" as sheet

Not only will this use OS X's recommended sheet appearance, but on all 
platforms the alert box will be modal only to the stack over which is 
appears, allowing the user to continue to interact with other windows.

That said, from time to time we're asked to do things outside of the HIG 
recommendations, and there's a request for being able to set the loc of 
the ask and answer dialogs in the RQCC:
<http://quality.runrev.com/show_bug.cgi?id=4309>

--
  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