WoW:API Region SetPoint

From AddOn Studio
Revision as of 13:05, 16 February 2005 by WoWWiki>Bucksworld
Jump to navigation Jump to search
SetPoint -Documentation by Sarf-

Sets the current attachment point of an UI component.

obj:SetPoint(point, parent, relativePoint[, x, y]);

Arguments
point
the point to attach the obj to (see API Positions) (i.e. bind the left side of your frame)
parent
the name of the parent to attach the obj to (can be "UIParent" to attach it to the screen itself)
relativePoint
the relative point to attach the obj to (see API Positions) (i.e. bind your frame to the left side of the parent)
x
the X offset (-5 means 5 units left, 5 means 5 units right)
y
the Y offset (-5 means 5 units down, 5 means 5 units up)

Returns
nil

Example
MainMenuBar:SetPoint("BOTTOMLEFT", "UIParent", "BOTTOMLEFT", 0, 0);
Result

Description
Attaches obj to the specified position.

Template:WoW API