Thread: Linking frames?
View Single Post
09-16-12, 03:20 AM   #3
Rythal
Featured Artist
Featured
Join Date: Aug 2012
Posts: 1,458
Originally Posted by Xrystal View Post
Use SetPoints of center for each frame.

Frame1 = CreateFrame("Frame","Frame1",UIParent)
Frame1:SetPoint("CENTER",0,0)
Frame2 = CreateFrame("Frame","Frame2",Frame1)
Frame2:SetPoint("CENTER",0,0)
Frame3 = CreateFrame("Frame","Frame3",UIParent)
Frame3:SetPoint("TOPLEFT",0,0)
Frame3:SetPoint("TOPRIGHT",0,0)

But come to think of it, would moving a child move the parent or would you have to move the parent to move the children around.
I'm not sure... I know what i'm trying to do has to be possible since Carbonite did it, but i'm trying extremely hard to not look at any of there code while I work on the new one. But so far all my attempts, the child moves and the parent stays in place.
  Reply With Quote