WoW:API Region SetAllPoints: Difference between revisions

no edit summary
mNo edit summary
No edit summary
Line 8: Line 8:


  MyObject:SetPoint("TOPLEFT", relativeRegion ,"TOPLEFT", 0, 0)
  MyObject:SetPoint("TOPLEFT", relativeRegion ,"TOPLEFT", 0, 0)
MyObject:SetPoint("TOPRIGHT", relativeRegion ,"TOPRIGHT", 0, 0)
MyObject:SetPoint("BOTTOMLEFT", relativeRegion ,"BOTTOMLEFT", 0, 0)
  MyObject:SetPoint("BOTTOMRIGHT", relativeRegion ,"BOTTOMRIGHT", 0, 0)
  MyObject:SetPoint("BOTTOMRIGHT", relativeRegion ,"BOTTOMRIGHT", 0, 0)


* See [[API Region SetPoint|Region:SetPoint]]()
* See [[API Region SetPoint|Region:SetPoint]]()
* ''region'' may be given as nil to anchor relative to the whole screen. {What if the region isn't specified, does it default to parent or screen or error?)
* ''region'' may be given as nil to anchor relative to the whole screen.
* ''region'' unspecified anchors the object to the parent.
Anonymous user