Developer Resources

Layout

Overview

Layout class that allows controls to be positioned and sized automatically.

Constructor

Layout()

Properties

Layout.Horizontal
A flag representing that a horizontal layout should be created.
Layout.Vertical
A flag representing that a vertical layout should be created.
Layout.Top
A flag representing that a layout item should have padding on the top.
Layout.Bottom
A flag representing that a layout item should have padding on the bottom.
Layout.Left
A flag representing that a layout item should have padding on the left.
Layout.Right
A flag representing that a layout item should have padding on the right.
Layout.All
A flag representing that a layout item should have padding on all sides.
Layout.Expand
A flag representing that a layout item should be expanded to fill the layout (layout items are expanded vertically for horizontal layouts and expanded horizontally for vertical layouts).
Layout.Center
A flag representing that a layout item should be centered in the layout (layout items are centered vertically for horizontal layouts and centered horizontally for vertical layouts).

Methods

Layout.layout
Positions and sizes the contents of the layout object.
Layout.show
Shows or hides the contents of the layout object.

Layout.layout

function Layout.layout()

Description

This function positions and sizes the contents of the layout object.

Layout.show

function Layout.show(item : FormComponent, flag : Boolean)
function Layout.show(item : Layout, flag : Boolean)

Arguments

item
The form component or layout object to be shown or hidden in this layout.
flag
The flag determines whether or not to show the contents of the layout object. If flag is true, the contents of the layout object are show; if flag is false, they are hidden.

Description

If flag is true, this function shows item. If flag is false, this function hides item.