Screen Postion??? Eric strikes again :-)
Klaus Major
klaus at major-k.de
Thu Jul 21 13:39:46 EDT 2005
Hi Eric,
> Hi Ban,
>
> You could try to set the position of your stacks relative to the
> screenRect value in a preOpenStack handler in your main stack.
> For instance:
>
> on preOpenStack
> local tCurLoc
> -----
> put the screenLoc into tCurLoc
> set the loc of this stack to tCurLoc
> repeat with i = 1 to 5
> add x to item 1 of tCurLoc -- horizontal co-ordinate
> add y to item 2 of tCurLoc -- vertical co-ordinate
> set the loc of stack item i of "MySubstack1, MySubstack2,
> etc" to tCurLoc
> end repeat
> end preOpenStack
>
> Such a handler will present the main stack centred on- screen and
> the others in cascade according to x and y values.
> Of course, you can change all that to suit your needs (working for
> instance with the screenRect too).
> It's just to get you the idea.
>
> Le 21 juil. 05 à 19:15, Ban Nguyen a écrit :
>
>
>> I am creating an application which has one main stack and 5
>> substacks. I
>> lock the size and location using property inspector BUT when I
>> view the
>> application on different computers with different screen setting
>> those 5
>> substacks are displayed in different locations
>>
>> The problem is I don't know how to set the location for those 5
>> substacks so they are displayed in the right position that I set so I
>> don't have to worry about other users' computer screen setting.
>>
>
> Best Regards from Paris,
>
> Eric Chatonet.
> ----------------------------------------------------------------
> So Smart Software
>
> For institutions, companies and associations
> Built-to-order applications: management, multimedia, internet, etc.
> Windows, Mac OS and Linux... With the French touch
>
> Free plugins and tutorials on my website
> ----------------------------------------------------------------
> Web site http://www.sosmartsoftware.com/
> Email eric.chatonet at sosmartsoftware.com/
> Phone 33 (0)1 43 31 77 62
> Mobile 33 (0)6 20 74 50 86
DAMN, i'm way too slow :-D
Best
Klaus Major
klaus at major-k.de
http://www.major-k.de
More information about the use-livecode
mailing list