pete at lcsql.com
Sat Sep 22 15:00:22 EDT 2012
Thanks to all for the explanations and suggestions. The common thread
seems to be to use preOpenStack rather than preOpenCard so I'll move my
code there and see what happens.
lcSQL Software <http://www.lcsql.com>
On Sat, Sep 22, 2012 at 11:51 AM, Scott Rossi <scott at tactilemedia.com>wrote:
> FWIW, in most cases a preOpenStack or preOpenCard handler in the card
> script of the first card should be enough to position/orient a stack. If
> you try to set stack properties like windowShape or shadow, those actions
> can cause the stack to become visible before positioning takes place
> because they affect the stack's window, but otherwise, you should be able
> to set a stack's position before opening it.
> Setting the stack's position to the screenLoc should position the stack at
> the stack at the center of the main monitor. No lock screen or splash
> stack is needed -- it should just work.
> In the case where you do need to make a change to the stack's window for
> example, you can do something like this:
> on preOpenStack
> set bottomRight of this stack to -10000,-10000 -- make sure stack is
> set the windowShape of this stack to the id of image 1
> set loc of this stack to the screenLoc
> end preOpenStack
> That's a over-simple example but the idea is just to keep the stack's
> location off screen until you're done modifying it.
> Hope this helps.
> Scott Rossi
> Creative Director
> Tactile Media, UX Design
More information about the use-livecode