View Full Version : Understanding Containers

2014-12-19, 07:18
Unlike Lianja, Visual FoxPro does not support layouts which are responsive and auto adjust their contents.

In Lianja, 'Layout' can be 'Vertical', 'Horizontal' or 'Form' or just unset.

To use absolute positioning you do not need to specify a layout.

A 'Form' Layout can only be used with the addRow() method not the addObject() method.

When using 'Vertical', all objects added to the container with no height specified will be laid out with the same height. If you want a control to be a fixed height set its fixedheight property. Same goes for 'Horizontal' and fixedwidth.

You can also set 'spacing' and 'margin' on a container.

Containers can themselves contain containers so, for example, you can add horizontal containers to a vertical container and everything will automatically adjust to the size of the base container e.g. a Form.

2014-12-23, 22:47
Just to clarify, containers are primarily used in custom sections or apps that are non standard custom apps that are run using the Lianja runtime.