AYUDA EN LÍNEA
 WINDEVWEBDEV Y WINDEV MOBILE

Este contenido se ha traducido automáticamente.  Haga clic aquí  para ver la versión en inglés.
Ayuda / WLanguage / Funciones WLanguage / Controles, páginas y ventanas / Funciones de controles
WINDEV
WindowsLinuxJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac Catalyst
Others
Stored procedures
TextHeight (Function)
In french: TexteHauteur
Calculates the height (in pixels) of the text displayed in an edit control, in a Static Text 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.
Example
Res is real = TextHeight(SAI_Saisie1, "Bonjour")
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 Note: The height will be zero for unmanaged fields. Only the edit controls and the Static Text controls are supported.
<Control name>: Character string
Name of the Edit control, Static Text control or Combo Box control.
Android Name of the edit control or Static Text control.
<Text>: Character string
Text whose height must be calculated.
<Option>: Optional integer constant
Configures the mode for calculating the height:
tWithMarginAllows 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: wd300std.dll
Versión mínima requerida
  • Versión 9
Comentarios
Haga clic en [Agregar] para publicar un comentario

Última modificación: 15/05/2025

Señalar un error o enviar una sugerencia | Ayuda local