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 / Propiedades WLanguage / Propiedades de ventanas, páginas y 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
The CaptionWidth property gets and sets the width reserved for the text area in an Edit or Combo Box control.
Remark: This property is particularly useful when creating a field with the ControlCreate function.. Indeed, during the dynamic creation of a control, the width of the caption is set to 0 by default.
Ejemplo
// Enlarge the caption of edit control
EDT_EDIT1.Width += 150
EDT_EDIT1.CaptionWidth += 150
EDT_EDIT1.Caption = CUSTOMER.NAME + "'s phone number"
Sintaxis

Getting the width of the text area Ocultar los detalles

<Result> = <Control used>.CaptionWidth
<Result>: Integer
Width (in pixels) of the text area in the control.
<Control used>: Control name
Name of the control to be used. This control can be an edit control or a Combo Box control.

Changing the width of the text area Ocultar los detalles

<Control used>.CaptionWidth = <New value>
<Control used>: Control name
Name of the control to be used. This control can be an edit control or a Combo Box control.
<New value>: Integer
New width (in pixels) of the caption associated with the control.
Observaciones
The control must use a style with the caption on the left. Otherwise, the CaptionWidth property has no effect.
Versión mínima requerida
  • Versión 19
Esta página también está disponible para…
Comentarios
Haga clic en [Agregar] para publicar un comentario

Última modificación: 10/05/2025

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