Calculates the height (in pixels) of the text displayed in an edit control, in a Static control or in a Combo Box control. This allows you to predict the height occupied by the text in order to enlarge the control if necessary.
Res is real = TextHeight(EDT_Edit1, "Hello")
<Result> = TextHeight(<Control name> , <Text> [, <Option>])
Height of the text (in pixels) in the specified control (according to the control style).
Remark: The height will be null for the unsupported control. Only the edit controls and the Static controls are supported.
<Control name>: Character string
Name of the Edit control, Static control or Combo Box control.
Name of the edit control or Static control.
<Text>: Character string
Text whose height must be calculated.
<Option>: Optional integer constant
Configures the mode for calculating the height:
Business / UI classification: UI Code