This is a shorthand for SameWidth and SameHeight, it sets both of these attributes at once.
Source position: MUIClass.Group.pas line 60
published property TMUIGroup.SameSize : Boolean |
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;
|
Indicate that all children of this group shall have the same width. |
|
|
Indicate that all children of this group shall have the same height. |