WoW:API Region GetWidth

Revision as of 18:35, 10 December 2004 by WoWWiki>AeroBrain
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
GetWidth -Documentation by AeroBrain-

Gets the width of a frame-based object.

obj:GetWidth();

Arguments
nil

Returns
Width of the frame-based object.

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
Returns the width of a frame-based object.

Template:WoW API