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 / Desarrollar una aplicación o un sitio web / Controles, ventanas y páginas / Controles: tipos disponibles / Control Disposición
  • Overview
  • Defining visibility programmatically
  • Hiding a control dynamically
  • Hiding a cell in a Layout control dynamically
  • Programming the Layout control
  • Available properties
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
Manipulating Layout controls programmatically
Overview
Layout controls can be manipulated programmatically. The following elements can also be manipulated programmatically:
  • controls in the Layout control,
  • cells in the Layout control.
This help page presents the different options available.
Defining visibility programmatically

Hiding a control dynamically

To dynamically make a field present in a Layout control visible or invisible, simply use the Visible property using the following syntax:
<Control name>.Visible = <True/False>

Note: Operation of a Layout control in "push fields around" mode :
The cell in the Layout control is automatically hidden and the other cells are automatically repositioned if the following conditions are met:
  • a control within a Layout control is invisible,
  • this control is the only one in a cell or all the controls in the cell of the Layout control are invisible.
Remarks:
  • If all the controls within a Layout control are invisible, the Layout control remains visible.
  • WEBDEV - Código ServidorWEBDEV - Código Navegador The Visible property can be used in server or browser code. The property has the same effect on controls and cells in a Layout control.
  • WINDEVAndroidiPhone/iPad The VisibleWithAnimation property shows or hides a Layout control with an animation.

Hiding a cell in a Layout control dynamically

To dynamically make a cell in a Layout control visible or invisible, simply use the Visible property on the cell using the following syntax:
<Control name>[Cell index].Visible = <True/False>

Note: Operation of a Layout control in "push fields around" mode :
If a cell in a Layout control is made invisible, all the fields in the cell are automatically made invisible: the other cells in the Layout control are automatically repositioned..
Remarks:
  • If all the cells in a Layout control are hidden, the Layout control is also hidden.
  • WEBDEV - Código ServidorWEBDEV - Código Navegador The Visible property can be used in server or browser code. The property has the same effect on controls and cells in a Layout control.
  • WINDEVAndroidiPhone/iPad The VisibleWithAnimation property shows or hides the cells of a Layout control with an animation.
Programming the Layout control

Available properties

The following properties are specific to the Layout control:
HeightWithAnimationLa propiedad HeightWithAnimation se utiliza para modificar la altura de una celda de un control Disposición con la animación "Redimensionar celda" definida:
  • en la pestaña "Avanzado" de la ventana de descripción del proyecto (botón "Animación del control").
  • en la pestaña "Estilo" del control o proyecto.
LayoutLa propiedad Layout se utiliza para obtener la disposición de las celdas en un control Disposición.
MarginInterCellLa propiedad MarginInterCell se utiliza para:
  • averiguar el margen entre filas o columnas en un control Disposición.
  • modificar el margen entre filas o columnas en un control Disposición.
VisibleWithAnimationEn VisibleWithAnimation se utiliza para hacer visible o invisible un control mediante la animación "Aparecer/Desaparecer".
WidthWithAnimationLa propiedad WidthWithAnimation se utiliza para modificar la anchura de una celda de un control Disposición con la animación "Redimensionar celda" definida:
  • en la pestaña "Avanzado" de la ventana de descripción del proyecto (botón "Animación del control").
  • en la pestaña "Estilo" del control o proyecto.
For a complete list of WLanguage properties that can be used with Layout controls, see Layout control properties.
Ver también
Versión mínima requerida
  • Versión 23
Esta página también está disponible para…
Comentarios
Haga clic en [Agregar] para publicar un comentario

Última modificación: 30/09/2024

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