Location of stack
Jerry Daniels
jerry.daniels at me.com
Sun May 16 05:16:03 EDT 2010
You could also hide the stack on preOpenStack then do your business and show the stack on openStack.
Best,
Jerry Daniels
Create iPad web apps with Rodeo:
http://rodeoapps.com
On May 16, 2010, at 3:22 AM, Sarah Reichelt <sarah.reichelt at gmail.com> wrote:
> On 16/05/2010, at 4:34 PM, "Paul D. DeRocco" <pderocco at ix.netcom.com> wrote:
>
>>> From: Sarah Reichelt
>>>
>>> I'm guessing your stack has a menu. On Mac stacks, Rev does some funny
>>> business to hide the menu buttons off the top of the stacks window and
>>> create a real Mac menu. But this doesn't happen immediately.
>>>
>>> If you set the loc in a preOpenStack or startup handler, the menu bar
>>> will not have been hidden yet and the stack will effectively be
>>> taller. If you set the loc in an openStack handler, then the menu will
>>> have been hidden and the height of the stack the same as it was when
>>> you stored the loc, so it will work as expected.
>>>
>>> One workaround is to check if there is a menubar and, if so, check if
>>> there is a difference in height between the stack and the card. If
>>> they are the same, then the menu has not yet drawn and you need to
>>> compensate for this manually.
>>
>> Thanks, Sarah. If I do it in openStack instead of preOpenStack, will it
>> still position the window before it's first displayed?
>
> No, in that case, it should work fine, except that your users will see the window flash up and then move.
>>
>
> A compromise might be to set the loc in both handlers. Then it will appear almost in the right place and then shuffle a little bit.
>
> Cheers,
> Sarah_______________________________________________
> use-revolution mailing list
> use-revolution at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-revolution
More information about the use-livecode
mailing list