Unit 'MUIClass.Group' Package
[Overview][Classes][Index] [#MUIClass]

TMUIGroup.Columns

Indicate number of columns in a two dimensional group.

Declaration

Source position: MUIClass.Group.pas line 51

published property TMUIGroup.Columns : Integer
  read FColumns
  write SetColumns
  default 0;

Description

If you use this tag, the total number of children must be dividable by the number of columns.

The children will be positioned in a two dimensional array, e.g. allowing easy creation of button fields (maybe for calculator).

When MUI layouts two-dimensional groups, it does actually two layout calculations, one for the rows and one the columns. Parameters like weights and dimensions are handled this way:

Actually, there is no difference if you use Columns or Rows.

Examples:

Group.Columns := 2;
Label1.Parent := Group;
String1.Parent := Group;
Label2.Parent := Group;
String2.Parent := Group;
Label3.Parent := Group;
String3.Parent := Group;

See also

Rows

  

Number of rows in a two dimensional group.

Horiz

  

Indicate whether the objects in this group shall be layouted horizontally or vertically.


Documentation generated on: 2021-11-28