Thread Tools Display Modes
12-28-06, 11:10 PM   #1
SynchroPriest
A Murloc Raider
Join Date: Dec 2006
Posts: 5
Frame Reparenting

WoWWiki states that CreateFrame() takes the form:

CreateFrame("frameType"[ ,"name"][, parent][, "inheritFrame"])

That third argument indicates our frame will take on the assigned parent, or UIParent if not specified. What I'd like to know is if there is any way to reparent a frame. If I have two frames open, "Panel_1" and "Panel_2", and Panel_1 has a sub frame "InfoFrame", can I remove InfoFrame from Panel_1 and add it to Panel_2?
  Reply With Quote
12-29-06, 11:28 AM   #2
Tekkub
A Molten Giant
 
Tekkub's Avatar
AddOn Author - Click to view addons
Join Date: Dec 2005
Posts: 960
Region:SetParent(parent or "parentName") - Set the parent for this frame
  Reply With Quote

WoWInterface » Developer Discussions » General Authoring Discussion » Frame Reparenting


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off