View Single Post
Old 11-08-2015, 10:48 AM   #3
warriorofmight
Enhanced Imperial Golem
 
Join Date: Aug 2004
Posts: 230
Interface Author - Click to view interfaces
Default

Drakah you're adorable.

Let me see if I can remember ... Basically you have the 4 anchors - top, bottom, left, and right.

<TopAnchorToTop>true</TopAnchorToTop> - The top of this element will anchor itself to the top of the container/window. No matter what moving or resizing you do, the element will remained anchored to the top

<BottomAnchorToTop>true</BottomAnchorToTop> - The bottom of this element will anchor itself to the top of the container/window. No matter what moving or resizing you do, the element will remained anchored to the top. This is usually used in conjunction with the BottomAnchorOffset below. You would use this to keep the element anchored to the top of the window but remain the same vertical size. So BottomAnchorToTop with a BottomAnchorOffset of 20 would mean the element would be attached to the top of the window/container and would have a vertical size of 20 at all times.

The next two follow the same rules as above, but in the left/right/horizontal plane:

<LeftAnchorToLeft>true</LeftAnchorToLeft>
<RightAnchorToLeft>true</RightAnchorToLeft> (Also, if you mark this as false, the right side of the element will anchor itself to the right side of the container/window, meaning the element resizes itself along with the container/window.

The last 4 dictate how far from the anchor point the element begins/ends. TopAnchorOffset of 5 would mean the top of the element would start 5 units down from the top of the container/window. BottomAnchorOffset of 20 would mean (if <BottomAnchorToTop> = true) that the bottom of the element would be located 20 units from the top of the container/window OR (if <BottomAnchorToTop> = false) the bottom of the element would be located 20 units from the bottom of the container/window. These values can also be negative, making the element begin/end beyond the visible range of the container/window.

<TopAnchorOffset>5</TopAnchorOffset>
<LeftAnchorOffset>5</LeftAnchorOffset>
<RightAnchorOffset>5</RightAnchorOffset>
<BottomAnchorOffset>5</BottomAnchorOffset>


Did that make any sense? (And for those who still do this sort of thing, is that even correct?) lol
__________________

Oink! Reborn
warriorofmight is offline   Reply With Quote