WoW:API Region GetHeight: Difference between revisions

From AddOn Studio
Jump to navigation Jump to search
mNo edit summary
(Changing Aerobrain to Omnigrok (user switched handles))
Line 1: Line 1:
  <center>'''GetHeight''' ''-Documentation by [[AeroBrain]]-''</center>
  <center>'''GetHeight''' ''-Documentation by [[User:Omnigrok|Omnigrok]]-''</center>


Gets the height of a frame-based object.
Gets the height of a frame-based object.

Revision as of 17:59, 15 May 2006

GetHeight -Documentation by Omnigrok-

Gets the height of a frame-based object.

height = FrameLayout:GetHeight();

Arguments
none

Returns
height
height
Number - The height of the frame-based object (This is the desired height, if set with SetHeight, or the actual height if no desired height has been provided)

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.



Template:WoW API