Defines the behavior of the control being laid out
Ancestors - Base Layout Item (PRIM_DLBX) Object (PRIM_OBJT)
An attachment layout item defines the behavior of the managed control as part of an attachment layout. 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 |
---|---|
Attachment | Defines where a component is to be attached |
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) |
Manage | Reference to the component to be managed |
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 |
MaxWidth | Maximum width of the control when the container is resized |
MinHeight | Minimum height of the control when the container is resized |
MinWidth | Minimum width of the control when the container is resized |
Name | Name identifies the component Inherited from Object (PRIM_OBJT) |
Owner | Owner owns this component Inherited from Object (PRIM_OBJT) |
Parent | Reference to the layout manager of which this item is a part |
Sizing | Determines how a control is sized within the rules defined for its attachment |
Name | Description |
---|---|
CreateInstance | CreateInstance is signalled when an instance of a component is created Inherited from Attachment Layout Item (PRIM_ATLI) |
DestroyInstance | DestroyInstance is signalled when an instance of a component is about to be destroyed Inherited from Attachment Layout Item (PRIM_ATLI) |
Febuary 18 V14SP2