Attachment Layout Manager
Ancestors - Base Layout Manager (PRIM_DTVW) Object (PRIM_OBJT)
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.
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
Name | Description |
---|---|
ComponentClassName | ComponentClassName is the name of the component's class. Inherited from Object (PRIM_OBJT) |
ComponentMembers | ComponentMembers provides access to all the member components of this component Inherited from Object (PRIM_OBJT) |
ComponentPatternName | ComponentPatternName is used to qualify the class of the component. Inherited from Object (PRIM_OBJT) |
ComponentTag | Generic space allowing a value to be stored for the instance Inherited from Object (PRIM_OBJT) |
ComponentType | ComponentType gives you access to the type information about the component Inherited from Object (PRIM_OBJT) |
ComponentTypeName | ComponentTypeName is the fully qualified name of the component's class. Inherited from Object (PRIM_OBJT) |
MarginBottom | Bottom margin in pixels |
MarginLeft | Left margin in pixels |
MarginRight | Right margin in pixels |
MarginTop | Top margin in pixels |
MaxHeight | Maximum height of the control when the container is resized Inherited from Base Layout Manager (PRIM_DTVW) |
MaxWidth | Maximum width of the control when the container is resized Inherited from Base Layout Manager (PRIM_DTVW) |
MinHeight | Minimum height of the control when the container is resized Inherited from Base Layout Manager (PRIM_DTVW) |
MinWidth | Minimum width of the control when the container is resized Inherited from Base Layout Manager (PRIM_DTVW) |
Name | Name identifies the component Inherited from Object (PRIM_OBJT) |
Owner | Owner owns this component Inherited from Object (PRIM_OBJT) |
Parent | The 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) |
ProcessingOrder | ProcessingOrder identifies the sequence to use when attaching controls. |
Sizing | Determines how the layout manager will behave within the composite control it manages Inherited from Base Layout Manager (PRIM_DTVW) |
Name | Description |
---|---|
CreateInstance | CreateInstance is signalled when an instance of a component is created Inherited from Base Layout Manager (PRIM_DTVW) |
DestroyInstance | DestroyInstance is signalled when an instance of a component is about to be destroyed Inherited from Base Layout Manager (PRIM_DTVW) |
LANSA Version 15, April 2020