The Layout Manager Definitions

When you choose a layout, a layout manager DEFINE_COM statement is automatically created in the source of your container:

 

Define_Com Class(#PRIM_FWLM) Name(#FWLM_1) Direction(TopToBottom)

The class and the name of the layout manager depend on its type:

Type

Name

Attachment layout manager  

#ATLM_n

Grid layout manager

#GDLM_n

Flow layout manager

#FWLM_n

Split layout manager

#SPLM_n

 

 

For every component added to a layout, a layout item is added to keep the component attached to a specified place in its parent container's layout. So when you add components to a container with a layout manager, a layout item definition that determines the position of the component is also added:

DEFINE_COM CLASS(#PRIM_PHBN) NAME(#PHBN_1) CAPTION('Top') DISPLAYPOSITION(1) LEFT(0) PARENT(#COM_OWNER) TABPOSITION(1) TOP(0) WIDTH(492)

DEFINE_COM CLASS(#PRIM_ATLI) NAME(#ATLI_1) ATTACHMENT(Top) MANAGE(#PHBN_1) MARGINBOTTOM(5) PARENT(#ATLM_1)

The layout items themselves are named in the same way as the layout managers:

Type

Class and Name

Attachment layout manager item  

#ATLI_n

Grid layout manger item

#GDLI_n

Flow layout manager item

#FWLI_n

Split layout manager item

#SPLI_n