WoW:API Region SetWidth: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
m (Move page script moved page API Region SetWidth to API Region SetWidth without leaving a redirect) |
||
(4 intermediate revisions by 4 users not shown) | |||
Line 1: | Line 1: | ||
{{widgetmethod}} | |||
Sets the width of a frame-based object. | Sets the width of a frame-based object. | ||
Line 8: | Line 8: | ||
;''Arguments'' | ;''Arguments'' | ||
; width : The width to set the frame-based object to. | ; 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. | ||
---- | ---- | ||
Line 27: | Line 27: | ||
: Sets the width of a frame-based object. | : Sets the width of a frame-based object. | ||
Latest revision as of 04:47, 15 August 2023
← Widget API ← Region < SetWidth
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.