|
|
|
|
- Overview
- Managing the visibility through programming
- Making a control invisible
- Making a cell found in a Layout control invisible
- Programming the Layout control
- Available properties
Manipulating a Layout control programmatically
A Layout control can be handled programmatically. The following elements can also be handled programmatically: - the controls in the Layout control,
- the cells in the Layout control.
This help page presents the different operations that can be performed. Managing the visibility through programming Making a control invisible To dynamically make a control in a Layout control visible or invisible, simply use the Visible property in the following syntax:
Control name>.Visible = <True/False
Remark: Layout control in "push surrounding controls" mode: The cell in the Layout control is automatically made invisible and the other cells in the Layout control are automatically repositioned if the following conditions are met: - a control in 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 in a Layout control are hidden, the Layout control is also hidden.
The VisibleWithAnimation property makes a Layout control visible or invisible by playing an animation.
Making a cell found in a Layout control invisible To dynamically make a cell in a Layout control visible or invisible, simply use the Visible property in the following syntax:
<Control name>[Cell index].Visible = <True/False>
Remark: Layout control in "push surrounding controls" mode: If a cell found in a Layout control is made invisible, all controls found in the cell are automatically made invisible: the other cells found 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 VisibleWithAnimation property makes the cells in a Layout control visible or invisible by playing an animation.
Programming the Layout control Available properties The following properties are specific to the Layout control:
| | HeightWithAnimation | The HeightWithAnimation property is used to modify the height of a cell of a Layout control with the "Resize cell" animation defined: - in the "Advanced" tab of the project description window ("Control animation" button).
- in the "Style" tab of the control or project.
| Layout | The Layout property is used to get the layout of the cells in a Layout control. | MarginInterCell | The MarginInterCell property is used to: - find out the margin between rows or columns in a Layout control.
- modify the margin between rows or columns in a Layout control.
| VisibleWithAnimation | The VisibleWithAnimation property is used to make a control visible or invisible via the "Appear/Disappear" animation. | WidthWithAnimation | The WidthWithAnimation property is used to modify the width of a cell of a Layout control with the "Resize cell" animation defined: - in the "Advanced" tab of the project description window ("Control animation" button).
- in the "Style" tab of the control or project.
|
For a complete list of WLanguage properties that can be used with a Layout control, see Properties associated with Layout controls.
This page is also available for…
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|