|
|
|
|
|
- Overview
- Defining visibility programmatically
- Hiding a control dynamically
- Hiding a cell in a Layout control dynamically
- Programming the Layout control
- Available properties
Manipulating Layout controls programmatically
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.
 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.   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.
 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.   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:
| | HeightWithAnimation | La 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.
| Layout | La propiedad Layout se utiliza para obtener la disposición de las celdas en un control Disposición. | MarginInterCell | La 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.
| VisibleWithAnimation | En VisibleWithAnimation se utiliza para hacer visible o invisible un control mediante la animación "Aparecer/Desaparecer". | WidthWithAnimation | La 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.
Esta página también está disponible para…
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|