Wikia

WoWWiki

Changes: API Region SetAllPoints

Edit

Back to page

m (catfix, Replaced: {{widgetmethod}} → {{widgetmethod}}<br>)
m (catfix, Replaced: {{widgetmethod}}<br> → {{widgetmethod}})
 
Line 1: Line 1:
{{widgetmethod}}<br>
+
{{widgetmethod}}
   
 
Sets an object to be positioned and sized exactly the same as another object.
 
Sets an object to be positioned and sized exactly the same as another object.

Latest revision as of 23:56, July 14, 2008

Widget API


Sets an object to be positioned and sized exactly the same as another object.

MyObject:SetAllPoints(relativeRegion or "regionName") 

... is exactly equivalent to:

MyObject:SetPoint("TOPLEFT", relativeRegion ,"TOPLEFT", 0, 0)
MyObject:SetPoint("BOTTOMRIGHT", relativeRegion ,"BOTTOMRIGHT", 0, 0)
  • See Region:SetPoint()
  • region may be given as nil to anchor relative to the whole screen.
  • region unspecified anchors the object to the parent.

Around Wikia's network

Random Wiki