WoW:API Region SetPoint

From AddOn Studio
Revision as of 16:52, 19 November 2004 by WoWWiki>Sarf
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
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)
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)
x
the X offset (-5 means 5 units left, 5 means 5 units right)
y
the Y offset (-5 means 5 units UP, 5 means 5 units down)

Returns
nil

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

Description
Attaches obj to the specified position.

Template:WoW API