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


Indicate number of columns in a two dimensional group.


Source position: MUIClass.Group.pas line 51

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


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.


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

See also



Number of rows in a two dimensional group.



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

Documentation generated on: 2024-04-18