< All Topics
Print

Container

Description

It is used to group several Widgets, and it is used when we want to additionally organize a page that contains a large number of Widgets or if we want to perform some operation on several Widgets at once, e.g. hide using the Visible property of the Container. When the Widget is inside the Container, then its left and top coordinates are relative to the left and top of the Container, which means that when the Container is moved, all the Widgets inside it are also moved. Widgets are added to the Container via the Widgets Structure panel using drag and drop.

Properties

Specific

Layout

Enum

Determines how Child widgets are positioned within this container:

  • Static – Child widgets are positioned within the Container using their left and top properties.
  • Horizontal – Child widgets are positioned from left to right (or vice versa if RTL is selected in the SetPageDirection action) and in order according to the order set through the Widgets Structure panel. So, if this option is selected, then the left property of the Child widget is not used. If a Child widget is hidden, then it is skipped and its position is taken by the next visible Widget in the list.
  • Vertical – Child widgets are positioned from top to bottom and in order according to the order set through the Widgets Structure panel. So, if this option is selected, then the top property of the Child widget is not used. If a Child widget is hidden, then it is skipped and its position is taken by the next visible Widget from the list.

Visible

EXPRESSION (boolean)

If the calculated expression is true then the Widget is visible, and if it is false then the Widget is hidden. It can be left blank, in which case the Widget is always visible.

Examples

  • eez-gui-widgets-demo
Page content