Class: LM_LayoutView

Parent class: LM_View

The LM_LayoutView class is used to arrange other user interface objects in a dialog box or toolbar. You never create a layout view yourself - it is provided for you when you create a dialog box or fill in a toolbar.

Member Functions


void AddChild(view, alignment=LM.GUI.ALIGN_CENTER, indent=0)

Add a new widget to the layout. Use this to add user interface controls one at a time to a dialog box.

Return value: none view (LM_View): the view to add to the layout alignment (int): how to align the child view - see alignment constants (defaults to LM.GUI.ALIGN_CENTER) indent (int): how far to indent the child view (defaults to 0)
void AddPadding(pixels=LM.GUI.DEFAULT_PADDING)

Add some blank space to the layout.

Return value: none pixels (int): how much blank space in pixels
void Indent(amount=LM.GUI.DEFAULT_INDENT)

Begin indenting all further views that get added to the layout.

Return value: none amount (int): how far to indent in pixels
void Unindent(amount=LM.GUI.DEFAULT_INDENT)

Stop indenting all further views that get added to the layout.

Return value: none amount (int): how far to un-indent in pixels
void PushH(alignment=LM.GUI.ALIGN_LEFT, padding=-1)

Switch to horizontal layout for the next set of child views to be added.

Return value: none alignment (int): how to align the horizontal row in the current layout padding (int): how much padding to provide between elements
void PushV(alignment=LM.GUI.ALIGN_LEFT, padding=-1)

Switch to vertical layout for the next set of child views to be added.

Return value: none alignment (int): how to align the vertical column in the current layout padding (int): how much padding to provide between elements
void Pop()

End the current row or column of layout and go back to the style of layout before that row or column was started.

Return value: none