DesktopX Aligning objects and reference points

Tuesday, July 12, 2005 by Skarny | Discussion: DesktopX

When I set an object to be centrally aligned, the Object.Left etc still points to the furthermost left hand co-ordinate of the object right? Also, children still take their position reference points from the Top left corner of the parent.

I was wondering if it could be made so that a centrally aligned object (or right) have their reference points stored (ie the x,y of the center) and accessible.

Also could children attached to a centered object take their reference from the objects center?

I can get around this using a few variables and some maths, but it seems to me more logical to take references from the main position method used in an object. But that's me.

CerebroJD
Reply #1 Tuesday, July 12, 2005 5:23 PM
I've found its easier to use the math to figure out the centers anyways...

Please login to comment and/or vote for this skin.

Welcome Guest! Please take the time to register with us.
There are many great features available to you once you register, including:

  • Richer content, access to many features that are disabled for guests like commenting on the forums and downloading skins.
  • Access to a great community, with a massive database of many, many areas of interest.
  • Access to contests & subscription offers like exclusive emails.
  • It's simple, and FREE!



web-wc01