PC SOFT

ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Home | Sign in | French EN
WINDEV
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadApple WatchUniversal Windows 10 AppWindows Mobile
Others
Stored procedures
TextHeight (Function)
In french: TexteHauteur
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.
Versions 15 and later
Android This function is now available for Android applications.
New in version 15
Android This function is now available for Android applications.
Android This function is now available for Android applications.
Versions 16 and later
WINDEVLinux This function is now available for WINDEV applications in Linux.
New in version 16
WINDEVLinux This function is now available for WINDEV applications in Linux.
WINDEVLinux This function is now available for WINDEV applications in Linux.
Versions 18 and later
iPhone/iPad This function is now available for iPhone/iPad applications.
New in version 18
iPhone/iPad This function is now available for iPhone/iPad applications.
iPhone/iPad This function is now available for iPhone/iPad applications.
Versions 21 and later
Universal Windows 10 App This function is now available in Universal Windows 10 App mode.
New in version 21
Universal Windows 10 App This function is now available in Universal Windows 10 App mode.
Universal Windows 10 App This function is now available in Universal Windows 10 App mode.
Example
Res is real = TextHeight(EDT_Edit1, "Hello")
Syntax
<Result> = TextHeight(<Control name> , <Text> [, <Option>])
<Result>: Real
Height of the text (in pixels) in the specified control (according to the control style).
Android Remark: The height will be null for the unsupported control. Only the edit controls and the Static controls are supported.
<Control name>: Character string (with or without quotes)
Name of the Edit control, Static control or Combo Box control.
Android 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:
Versions 25 and later
tWithMargin
New in version 25
tWithMargin
tWithMargin
Allows you to take into account the margins set for the control (left indentation, right indentation, etc.).
This constant can be combined with the tMultiline constant.
AndroidJava This constant is not available.
tDefault
(default value)
Height of the text in the control.
tMultilineHeight of the text while taking the CR characters into account (automatic or forced by a "Carriage Return").
tSingleLineHeight of a line while only taking the "Carriage Returns" into account.
Business / UI classification : UI Code
Component : wd260std.dll
Minimum version required
  • Version 9
This page is also available for…
Comments
Click [Add] to post a comment