WoW:API Region SetPoint: Difference between revisions

From AddOn Studio
Jump to navigation Jump to search
mNo edit summary
 
mNo edit summary
Line 8: Line 8:
;''Arguments''
;''Arguments''


; point : the point to attach the obj to (see [[API Positions]])
; 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)
; 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]])
; 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)
; 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)
; y : the Y offset (-5 means 5 units UP, 5 means 5 units down)

Revision as of 15:13, 11 February 2005

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 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