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
  • Limits
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 InitialWidth property is used to:
  • Find out the initial width of a control or window.
    The initial width corresponds to the width defined in the window editor during the element description. This width can evolve and it can be modified. It is returned by the Width property.
  • Modify the base width used for anchoring "width" fields.
    When a control is anchored, the base width used to resize the control according to the window is the width defined when the control was created (returned by the InitialWidth property).
    To modify the width of a control anchored in width, you must also modify its initial width.
  • Find out the initial width of a report control.
    The initial width corresponds to the width defined in the report editor during the element description. This width can evolve and it can be modified. This new width is returned by the Width property.
Ejemplo
// Increases the width of "STC_Title" by 30 millimeters
STC_Title.Width = STC_Title.InitialWidth + 30
// Restores the initial width of control
EDT_Edit1.Width = EDT_Edit1.InitialWidth
// Enlarges TABLE_Table1 that is anchored in width by 30 pixels
TABLE_Table1.Width += 30
TABLE_Table1.InitialWidth += 30
Sintaxis

Finding out the initial width Ocultar los detalles

<Initial width> = <Element used>.InitialWidth
<Initial width>: Integer
Width of the element defined in the window editor during its creation. This width is expressed in pixels.
<Element used>: Control name or window name
Name of the element (control or window) whose initial width must be calculated.
WINDEVAndroidiPhone/iPadIOS WidgetJavaCódigo de Usuario (UMC)

Modifying the initial width of a control anchored in width Ocultar los detalles

<Control used>.InitialWidth = <New width>
<Control used>: Control name
Name of the anchored control whose the initial width must be modified.
<New width>: Integer
New initial width of the anchored control (including the border) expressed in pixels.
Observaciones

Limits

iPhone/iPadIOS Widget The InitialWidth property is not available on Table controls. However, it is available for table columns.
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: 10/05/2025

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