Open main menu
Home
Random
Log in
Settings
About AddOn Studio
Disclaimers
AddOn Studio
Search
Editing
WoW:Parent
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
:''Were you looking for the [[WoWWiki:ParentPage|Parents' guide page]] for ''[[World of Warcraft]]''?'' A parent frame shares certain attributes with its children. For example, a child will automatically move whenever its parent is moved and will show and hide along with its parent. An AddOn with only one frame will want to use the standard UIParent. See [[Frames]] for a list of reasons why this is a good practice. <code><Frame name="My_Main_Frame" parent="UIParent"></code> To create a child frame you must declare an existing frame as its parent. <code><Frame name="My_New_Frame" parent="My_Main_Frame"></code> '''Important''': the table of contents file (.toc) must list the parent frame's xml file before the child's xml file. If this is not done, the child will not be linked to the parent. The child is not a clone of the parent. You will still need to set its size, backdrop, layers, and scripts. However, the child will be physically attached to the parent for movement. You can use [[Anchors]] to position the child with respect to the parent. For example, <code><Anchor point="RIGHT" relativePoint="LEFT" /></code> will align the right edge of the child with the left edge of the parent. See [[XML User Interface]] for more details. [[Category:Interface customization]]
Summary:
Please note that all contributions to AddOn Studio are considered to be released under the Creative Commons Attribution-NonCommercial-ShareAlike (see
AddOn Studio Wiki:Copyrights
for details).
Submissions must be written by you, or copied from a public domain or similar free resource (see
AddOn Studio Wiki:Copyrights
for details).
Cancel
Editing help
(opens in new window)