Attachment Layout Manager (PRIM_ATLM)

Attachment Layout Manager

Ancestors - Base Layout Manager (PRIM_DTVW) Object (PRIM_OBJT)

Details

An attachment layout divides the container in to 5 types of cell - Top, Bottom, Left right and Center.
 
Top and bottom fit to the width leaving the control's height unchanged.
Left and Right fit to the height leaving the control's width unchanged.
Center uses any remaining space.
 
The IDE will manage layout definition through the use of the designer. This code is provided for reference purposes.

Example

Simple web page using an attachment layout showing how it divides the container.
Begin_Com Role(*EXTENDS #PRIM_WEB) Layoutmanager(#AttachLayout1)
 
   Define_Com Class(#PRIM_ATLM) Name(#AttachLayout1)
   Define_Com Class(#PRIM_ATLI) Name(#AttachItem1) Attachment(Top) Manage(#Button1) Parent(#AttachLayout1)
   Define_Com Class(#PRIM_ATLI) Name(#AttachItem2) Attachment(Right) Manage(#Button2) Parent(#AttachLayout1)
   Define_Com Class(#PRIM_ATLI) Name(#AttachItem3) Attachment(Left) Manage(#Button3) Parent(#AttachLayout1)
   Define_Com Class(#PRIM_ATLI) Name(#AttachItem4) Attachment(Bottom) Manage(#Button4) Parent(#AttachLayout1)
   Define_Com Class(#PRIM_ATLI) Name(#AttachItem5) Attachment(Center) Manage(#Button5) Parent(#AttachLayout1)
 
   Define_Com Class(#PRIM_PHBN) Name(#Button1) Caption('Top') Displayposition(1) Left(0) Parent(#COM_OWNER) Tabposition(1) Top(0) Width(1200) Height(81)
   Define_Com Class(#PRIM_PHBN) Name(#Button2) Caption('Right') Displayposition(2) Height(644) Left(1024) Parent(#COM_OWNER) Tabposition(2) Top(81) Width(176)
   Define_Com Class(#PRIM_PHBN) Name(#Button3) Caption('Left') Displayposition(3) Height(644) Left(0) Parent(#COM_OWNER) Tabposition(3) Top(81) Width(177)
   Define_Com Class(#PRIM_PHBN) Name(#Button4) Caption('Bottom') Displayposition(4) Left(0) Parent(#COM_OWNER) Tabposition(4) Top(725) Width(1200) Height(75)
   Define_Com Class(#PRIM_PHBN) Name(#Button5) Caption('Center') Displayposition(5) Height(644) Left(177) Parent(#COM_OWNER) Tabposition(5) Top(81) Width(847)
 
End_Com

Properties

NameDescription
ComponentClassNameComponentClassName is the name of the component's class. Inherited from Object (PRIM_OBJT)
ComponentMembersComponentMembers provides access to all the member components of this component Inherited from Object (PRIM_OBJT)
ComponentPatternNameComponentPatternName is used to qualify the class of the component. Inherited from Object (PRIM_OBJT)
ComponentTagGeneric space allowing a value to be stored for the instance Inherited from Object (PRIM_OBJT)
ComponentTypeComponentType gives you access to the type information about the component Inherited from Object (PRIM_OBJT)
ComponentTypeNameComponentTypeName is the fully qualified name of the component's class. Inherited from Object (PRIM_OBJT)
MarginBottomBottom margin in pixels
MarginLeftLeft margin in pixels
MarginRightRight margin in pixels
MarginTopTop margin in pixels
MaxHeightMaximum height of the control when the container is resized Inherited from Base Layout Manager (PRIM_DTVW)
MaxWidthMaximum width of the control when the container is resized Inherited from Base Layout Manager (PRIM_DTVW)
MinHeightMinimum height of the control when the container is resized Inherited from Base Layout Manager (PRIM_DTVW)
MinWidthMinimum width of the control when the container is resized Inherited from Base Layout Manager (PRIM_DTVW)
NameName identifies the component Inherited from Object (PRIM_OBJT)
OwnerOwner owns this component Inherited from Object (PRIM_OBJT)
ParentThe component instance to which this instance is attached. The visual container for a control or the collector of a set of child instances Inherited from Object (PRIM_OBJT)
ProcessingOrderProcessingOrder identifies the sequence to use when attaching controls.
SizingDetermines how the layout manager will behave within the composite control it manages Inherited from Base Layout Manager (PRIM_DTVW)

Events

NameDescription
CreateInstanceCreateInstance is signalled when an instance of a component is created Inherited from Base Layout Manager (PRIM_DTVW)
DestroyInstanceDestroyInstance is signalled when an instance of a component is about to be destroyed Inherited from Base Layout Manager (PRIM_DTVW)

See also

All Component Classes

Technical Reference

LANSA Version 15, April 2020