Centering an object in a window
Ken Ray
kray at sonsothunder.com
Mon Aug 11 17:09:01 EDT 2003
Even easier:
set the loc of theObject to the loc of this card
Ken Ray
Sons of Thunder Software
Email: kray at sonsothunder.com
Web Site: http://www.sonsothunder.com/
> -----Original Message-----
> From: use-revolution-admin at lists.runrev.com
> [mailto:use-revolution-admin at lists.runrev.com] On Behalf Of
> Barry Levine
> Sent: Monday, August 11, 2003 8:42 PM
> To: use-revolution at lists.runrev.com
> Subject: Centering an object in a window
>
>
> I'm not sure if this is the proper method but it worked so I thought
> I'd post it.
>
> on centerTheObject
> global theObject
> set the loc of theObject to (item 1 of the localloc of the loc of
> this stack) ,\
> (item 2 of the localloc of the loc of this stack)
> end centerTheObject
>
> In the script that calls the above, I use:
>
> put myObject into theObject
> -- "myObject" for example being "field m144" (using quotes)
>
> Hope this helps someone.
>
> Regards,
> Barry
>
> _______________________________________________
> use-revolution mailing list
> use-revolution at lists.runrev.com
> http://lists.runrev.com/mailman/listinfo/use-> revolution
>
More information about the use-livecode
mailing list