GRIDCHILDRENINPARENT attribute
The GRIDCHILDRENINPARENT
attribute is
used for a container to align its children to the parent container.
Syntax
GRIDCHILDRENINPARENT
Usage
By default, in a grid-based layout, child elements of a container are aligned locally inside the
container layout cells. With the GRIDCHILDRENINPARENT
attribute, you can force
children to be aligned in a vertical or horizontal direction, based on the layout cells in the
parent container of the container to which you assign this attribute.
This feature is not supported on mobile platforms.
GRIDCHILDRENINPARENT
attribute applies only to GROUP
and SCROLLGRID
containers used inside a parent GRID
container.When the group or scrollgrid containers are placed vertically over each other, the alignment applies on parent grid columns, and when the containers are placed side by side horizontally, the alignment applies on parent grid rows.
Example
With this form definition, the elements in the four group boxes will align vertically and horizontally to the parent grid cells:
LAYOUT
GRID
{
<G ga ><G gb >
Some text
[a ] b[b ]
< >< >
<G gc ><G gd >
[c ] d[d ]
< >< >
}
END
END
ATTRIBUTES
GROUP ga: GRIDCHILDRENINPARENT;
GROUP gb: GRIDCHILDRENINPARENT;
GROUP gc: GRIDCHILDRENINPARENT;
GROUP gd: GRIDCHILDRENINPARENT;
EDIT a = FORMONLY.f_a;
EDIT b = FORMONLY.f_b;
EDIT c = FORMONLY.f_c;
EDIT d = FORMONLY.f_d;
END