GUI Help > Other > getTextHeight
getTextHeight
int height=getTextHeight(handle gadget, str text)
Description: Retrieves the height in pixels required to display the specified text using the specified gadget's font. This is normally used with drawText and canvas gadgets.
Return Value: See Above
Parameters:
gadget | Handle to a gadget
text | Text which you wish to find the height of.
Remarks:
See Also:
Example: (Note: You will need to include the GUI constants file for this example to work)