Wikia

WoWWiki

Watchlist Recent changes

API Region SetWidth

Redirected from API LayoutFrame SetWidth

Main Menue



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.

Pages on WoWWiki

94,213pages on
this wiki
Advertisement | Your ad here

Latest Photos

Add a Photo
55,642photos on this wiki
See more >

Recent Wiki Activity

See more >

Recent Questions

Around Wikia's network

Random Wiki