Widget API: Region:SetHeight

From AddOn Studio
Revision as of 04:22, 2 December 2007 by WoWWiki>Pcj
Jump to navigation Jump to search

Widget API ← Region < SetHeight

Sets the desired height of a frame-based object.

obj:SetHeight(height);

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

Returns
nil

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

Description
Sets the height of a frame-based object.