Custom layout
Instead of a simple sequence of form components on a form screen, you can use horizontal
layout groups to
put form components side-by-side. Nesting vertical and horizontal form components
allows you to
achieve virtually any layout.
Sometimes, enclosing groups and sibling groups span a cell that cannot be entirely
filled with a layout
group. With the "Anchor" property you can determine where the layout should be placed. By default,
horizontal form components are anchored "West" and vertical form components are anchored
"North-West".
Layout groups have a configurable cell spacing. For vertical layout groups, this is the vertical
gap between two form components (0 pixels by default), for horizontal layout groups
this is the
horizontal gap between two adjacent form components (5 pixels by default)
For each layout group, you can specify insets that are inserted around the entire layout group.
By default, the insets a zero in all directions.
By default, horizontal layout groups align a leading label of the first form component
in the group
with other form components from a direct vertical parent group. This is usually appropriate
when horizontal groups are used to attach additional form components to the right
side.
If this alignment is not desired, you can use the "Align first label" property of
a horizontal layout group to switch off the alignment.
Vertical layout groups always break alignment of leading labels. Within a vertical
group,
leading labels are aligned, but between vertical groups, the width of leading labels
is
unrelated.