Lore archive · Warcraft Wiki, 2023 dump
Parent
Last wiki revision 2008-07-07
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.
To create a child frame you must declare an existing frame as its parent.
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,
will align the right edge of the child with the left edge of the parent. See XML User Interface for more details.
Categories
- Interface customization
Source
https://warcraft.wiki.gg/wiki/Parent · retrieved 2023-11-13 · CC BY-SA 4.0
Converted from wikitext with templates, tables and images removed, so some sentences may be missing values.
This archive predates WoW: Forever. For collected gameplay facts see the Forever database. Search the archive.