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
WindowsLinuxJavaReportes y ConsultasCódigo de Usuario (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Código Navegador
WINDEV Mobile
AndroidWidget Android iPhone/iPadIOS WidgetApple WatchMac Catalyst
Otros
Procedimientos almacenados
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.
Ejemplo
Res is real = TexteHauteur(SAI_Saisie1, "Bonjour")
Sintaxis
<Result> = TextHeight(<Control name> , <Text> [, <Option>])
<Result>: Real
Height of the text (in pixels) in the specified control (according to the control style).
<Control name>: Character string
Name of the Edit control, Static Text control or Combo Box 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.
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.
Clasificación Lógica de negocio / UI: Código UI
Componente: wd300std.dll
Versión mínima requerida
  • Versión 9
Esta página también está disponible para…
Comentarios
Haga clic en [Agregar] para publicar un comentario

Última modificación: 20/09/2024

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