PC SOFT

ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Home | Sign in | English EN
  • 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 manipulated programmatically. The following elements can also be manipulated 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.
  • WEBDEV - Server codeWEBDEV - Browser code The Visible property can be used in server or browser code. The operating mode on the controls and cells in a Layout control is the same.
  • WINDEVAndroidiPhone/iPad 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.
  • WEBDEV - Server codeWEBDEV - Browser code The Visible property can be used in server or browser code. The operating mode on the controls and cells in a Layout control is the same.
  • WINDEVAndroidiPhone/iPad 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:
LayoutThe Layout property is used to get the layout of the cells in a 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.
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.
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.
For a complete list of WLanguage properties that can be used with a Layout control, see Properties associated with the Layout control.
Minimum version required
  • Version 23
This page is also available for…
Comments
Click [Add] to post a comment