WoW:API Region SetWidth: Difference between revisions

From AddOn Studio
Jump to navigation Jump to search
(Changing Aerobrain to Omnigrok (user switched handles))
({{widgetmethod}})
Line 1: Line 1:
{{widgetmethod}}
  <center>'''SetWidth''' ''-Documentation by [[User:Omnigrok|Omnigrok]]-''</center>
  <center>'''SetWidth''' ''-Documentation by [[User:Omnigrok|Omnigrok]]-''</center>


Line 27: Line 29:


: Sets the width of a frame-based object.
: Sets the width of a frame-based object.
----
{{Template:WoW API}}

Revision as of 13:00, 10 June 2006

Widget API ← Region < SetWidth

SetWidth -Documentation by Omnigrok-

Sets the width of a frame-based object.

obj:SetWidth(width);

Arguments
width
The width to set the frame-based object to (use 0 to clear the desired width). Note that a frame whose width is determined based on its anchors will not use this width.

Returns
nil

Example
myAddonOptionsParent = myAddonOptions:GetParent();
myAddonOptions:SetWidth(myAddonOptionsParent:GetWidth() / 2);
Result
The frame named 'myAddonOptions' would be set to half the width of its parent frame.

Description
Sets the width of a frame-based object.