WoW:XML/Anchor: Difference between revisions

No edit summary
Line 131: Line 131:


Each of these are, in the general case, equivalient:
Each of these are, in the general case, equivalient:
 
<pre>
<[[XML/Anchor|Anchor]] point="TOPLEFT" />
<[[XML/Anchor|Anchor]] point="TOPLEFT" />
 
</pre>
<[[XML/Anchor|Anchor]] point="TOPLEFT" relativeTo="$parent" />
<pre>
 
<[[XML/Anchor|Anchor]] point="TOPLEFT" relativeTo="$parent" />
<[[XML/Anchor|Anchor]] point="TOPLEFT" relativeKey="$parent" />
</pre>
<pre>
<[[XML/Anchor|Anchor]] point="TOPLEFT" relativeKey="$parent" />
</pre>


In each case the relative frame is parent. For the default case, the relative frame its the parent. For 'relativeTo', a named parent frame's full name will replace '$parent' causing 'relativeTo' to refer to the parent frame by name. For 'relativeKey', the named or unnamed parent frame's Lua 'reference' will be used as the relative frame, similar to 'self.GetParent()'.
In each case the relative frame is parent. For the default case, the relative frame its the parent. For 'relativeTo', a named parent frame's full name will replace '$parent' causing 'relativeTo' to refer to the parent frame by name. For 'relativeKey', the named or unnamed parent frame's Lua 'reference' will be used as the relative frame, similar to 'self.GetParent()'.