ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Help / Developing an application or website / Controls, windows and pages / Controls: Available types / Layout control
  • 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
WINDEV
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac CatalystUniversal Windows 10 App
Others
Stored procedures
Manipulating a Layout control programmatically
Overview
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.
  • WINDEV 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.
  • WINDEV 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:
HeightWithAnimationThe 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.
LayoutThe Layout property is used to get the layout of the cells in a Layout control.
MarginInterCellThe 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.
VisibleWithAnimationThe VisibleWithAnimation property is used to make a control visible or invisible via the "Appear/Disappear" animation.
WidthWithAnimationThe 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.
Minimum version required
  • Version 23
This page is also available for…
Comments
Click [Add] to post a comment

Last update: 01/26/2023

Send a report | Local help