set stack rect in startup handler

Phil Davis revdev at pdslabs.net
Mon Mar 24 13:51:55 EDT 2014


If I remember correctly, the startup message isn't available to our 
stacks in the IDE. Otherwise (in standalones) it should be.

Phil Davis


On 3/24/14, 7:21 AM, Martin Baxter wrote:
> This:
>
> on startup
>    set the rect of this stack to "100,100,300,300"
> end startup
>
> Does not seem to work in version 6.6 (at least for me, on Linux)
>
> Obviously the idea is to set the initial position of an application window.
>
> What happens is that the window is correctly sized to 200 * 200 px, but
> the specified position on screen is not honoured. The stack window may
> open centered or displaced by whatever other windows are already open.
> Setting the loc doesn't seem to work either.
>
> This worked for me in 6.5.2 and earlier.
>
> I'm thinking this is a bug, does anyone else have any insight on this?
>
> Martin
>
>
>
>
> _______________________________________________
> 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
>

-- 
Phil Davis





More information about the use-livecode mailing list