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

TMUIGroup.SameSize

This is a shorthand for SameWidth and SameHeight, it sets both of these attributes at once.

Declaration

Source position: MUIClass.Group.pas line 60

published property TMUIGroup.SameSize : Boolean
  read GetSameSize
  write SetSameSize
  default False;

Description

Using SameSize, you won't need to think if your group is horizontal or vertical, both cases are handled automatically.

Forcing all objects of a group to be the same size is e.g. useful for a row of buttons. It's visually more attractive when these buttons have equal sizes instead of being just as big as the text within.

Example:

// three Buttons, same size
Group.Horiz := True;
Group.SameSize := True;
But1.Parent := Group;
But2.Parent := Group;
But3.Parent := Group;

See also

SameWidth

  

Indicate that all children of this group shall have the same width.

SameHeight

  

Indicate that all children of this group shall have the same height.


Documentation generated on: 2024-12-22