removed151214
Unregistered
removed151214
Unregistered
Posts: N/A
With the merge window coming up for this, I just want to make sure I understand these changes 100% before I start making changes to my skin. If I'm understanding right...
PosX and PosY are both essentially deprecated?
When aligning a label either let or right, we now use Left or Right respectively instead of PosX?
The new CenterX sets the central position of the control in relation to the window (or control group, or whatever), regardless of the width? So if I set the CenterX at, for example, 500, the control will always be centered at 500 regardless of its width?
Hope that's all correct. Gonna challenge myself to see if I can update my skin in the same 30 minutes it took Ronnie! (No chance
)
Posts: 26,215
Joined: Oct 2003
Reputation:
187
Yup, exactly. Notice that you don't have to do anything if you don't want to - it's now fully backward compatible.
removed151214
Unregistered
removed151214
Unregistered
Posts: N/A
Great, thanks for the confirmation.
I'm presuming that PosX and PosY will be removed at some point in the future, so - particularly as my skin is a new one for Gotham - it might as well be up to date with these things.
Posts: 26,215
Joined: Oct 2003
Reputation:
187
Yup, The XLST that I posted earlier can be used to switch the right aligned labels if you want.
Otherwise, it's just search n replace.
Posts: 26,215
Joined: Oct 2003
Reputation:
187
I've tested Quartz on Gotham - works fine.
Note this has now been merged. As I said before: All old skins should still work .
removed151214
Unregistered
removed151214
Unregistered
Posts: N/A
Finished updating my skin to use the new layout tags. Just one question, is there a particular reason why dialog coordinates still appear to require posx and posy?
removed151214
Unregistered
removed151214
Unregistered
Posts: N/A
Posts: 26,215
Joined: Oct 2003
Reputation:
187
Could do (centerright/bottom immediately define centerleft/top so certainly no more effort involved).
removed151214
Unregistered
removed151214
Unregistered
Posts: N/A
I like the idea of right and bottom measuring from the right and bottom of the screen respectively - reminds me of my CSS days. However, I can't get my head around what then happens to right-aligned labels - I presume we'd continue using the right tag, as we do under the new positioning system - but just measure the distance to the right edge from the right of the screen instead of the left.
Sounds simple enough, but then we're going to have controls mixed together where some are measured from the left, some from the right. Could make the xml's harder to understand at-a-glance.
Posts: 26,215
Joined: Oct 2003
Reputation:
187
Under Gotham, labels are identical to any other control. If we switch to measuring <right> from the right, then it doesn't matter what the control is: the right edge of it will be on the right. Note that the _content_ of the control may not necessarily be hard against the right edge - that depends on alignment within the control. You're defining the rectangle for the content. The rest of the control stuff (e.g. the <align> tags) define how the content sits inside that rectangle.
I think I'll switch to right and bottom being measured from the right and bottom respectively.