Attachment Layout Item (PRIM_ATLI)

Defines the behavior of the control being laid out

Ancestors - Base Layout Item (PRIM_DLBX) Object (PRIM_OBJT)

Details

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.

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
AttachmentDefines where a component is to be attached
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)
ManageReference to the component to be managed
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
MaxWidthMaximum width of the control when the container is resized
MinHeightMinimum height of the control when the container is resized
MinWidthMinimum width of the control when the container is resized
NameName identifies the component Inherited from Object (PRIM_OBJT)
OwnerOwner owns this component Inherited from Object (PRIM_OBJT)
ParentReference to the layout manager of which this item is a part
SizingDetermines how a control is sized within the rules defined for its attachment

Events

NameDescription
CreateInstanceCreateInstance is signalled when an instance of a component is created Inherited from Attachment Layout Item (PRIM_ATLI)
DestroyInstanceDestroyInstance is signalled when an instance of a component is about to be destroyed Inherited from Attachment Layout Item (PRIM_ATLI)

See also

All Component Classes

Technical Reference

Febuary 18 V14SP2