Table Layout Item - ColumnSpan Property
Number of columns the managed item will span
Member of Table Layout Item (PRIM_TBLO.Item)
Data Type - Integer
Details
The ColumnSpan property specifies the horizontal extent of the cell in which the managed control is anchored.
ColumnSpan will use the smaller of its value or the available number of columns should the value be too large.
Example
In this example, different spans, sizing and Alignments are used to position the controls and determine their size.
Begin_Com Role(*EXTENDS #PRIM_WEB) Height(401) Width(761) Layoutmanager(#TableLayout1)
Define_Com Class(#PRIM_VS.Style) Name(#Style1) Backgroundbrush(#Brush1)
Define_Com Class(#PRIM_VS.SolidBrush) Name(#Brush1) Color(Theme400)
Define_Com Class(#PRIM_VS.Style) Name(#Style2) Backgroundbrush(#Brush2)
Define_Com Class(#PRIM_VS.SolidBrush) Name(#Brush2) Color(Theme300)
Define_Com Class(#PRIM_TBLO) Name(#TableLayout1)
Define_Com Class(#PRIM_TBLO.Column) Name(#Column1) Displayposition(1) Parent(#TableLayout1)
Define_Com Class(#PRIM_TBLO.Column) Name(#Column2) Displayposition(2) Parent(#TableLayout1)
Define_Com Class(#PRIM_TBLO.Column) Name(#Column3) Displayposition(3) Parent(#TableLayout1)
Define_Com Class(#PRIM_TBLO.Row) Name(#Row1) Displayposition(1) Parent(#TableLayout1)
Define_Com Class(#PRIM_TBLO.Row) Name(#Row2) Displayposition(2) Parent(#TableLayout1)
Define_Com Class(#PRIM_TBLO.Row) Name(#Row3) Displayposition(3) Parent(#TableLayout1)
Define_Com Class(#PRIM_TBLO.Item) Name(#LayoutItem1) Column(#Column1) Manage(#Label1) Parent(#TableLayout1) Row(#Row1) Columnspan(3)
Define_Com Class(#PRIM_TBLO.Item) Name(#LayoutItem2) Column(#Column1) Manage(#Label2) Parent(#TableLayout1) Row(#Row2) Rowspan(2)
Define_Com Class(#PRIM_TBLO.Item) Name(#LayoutItem3) Column(#Column2) Manage(#Label3) Parent(#TableLayout1) Row(#Row2) Sizing(None) Rowspan(2) Columnspan(2)
Define_Com Class(#PRIM_LABL) Name(#Label1) Displayposition(1) Left(0) Parent(#COM_OWNER) Tabposition(1) Tabstop(False) Top(0) Height(134) Width(761) Style(#Style1) Caption('Row 1, Column 1, Column Span 3, FitBoth') Alignment(Center) Verticalalignment(Center)
Define_Com Class(#PRIM_LABL) Name(#Label2) Displayposition(2) Left(0) Parent(#COM_OWNER) Tabposition(3) Tabstop(False) Top(134) Height(267) Width(254) Style(#Style2) Caption('Row 2, Column 1, Row Span 2, Column Span 1, FitBoth') Alignment(Center) Verticalalignment(Center)
Define_Com Class(#PRIM_LABL) Name(#Label3) Displayposition(3) Left(306) Parent(#COM_OWNER) Tabposition(2) Tabstop(False) Top(207) Height(121) Width(402) Style(#Style2) Caption('Row 2, Column 2, Row Span 2, Column Span 2, Centered') Alignment(Center) Verticalalignment(Center)
End_Com