Automatic HBoxes and VBoxes
Horizontal and vertical boxes are added automatically when stretchable elements are used.
When using layout tags in a GRID
container, the fglform compiler will automatically
add hbox or vbox containers with splitters in the following conditions:
- An hbox is created when two or more stretchable elements are stacked side by side and touch each other (no space between).
- A vbox is created when two or more stretchable elements are stacked vertically and touch each other (no space between).
No hbox or vbox will be created if the elements are in a SCROLLGRID
container.
This example defines two tables stacked vertically, generating a vbox with splitter. The ending
tags for the tables are
omitted.
<T table1 >
[colA |colB ]
[colA |colB ]
[colA |colB ]
[colA |colB ]
<T table2 >
[colC |colD ]
[colC |colD ]
This example defines a layout with two stretchable
TEXTEDIT
fields placed side by side, which would generate an automatic hbox
with splitter. To make both widgets touch, you need to use a pipe delimiter in between the two
widgets.[textedit1 |textedit2 ]
[ | ]
[ | ]
[ | ]