PRIM_MD.TabItem - TabSheet Property

Tabsheet to be displayed when item is pressed

Member of PRIM_MD.TabItem (PRIM_MD.TabItem)

Data Type - PRIM_TBSH - A sheet in a tab folder

Details

The TabSheet property defines an association with a Dialog, this allows for viewing of the tab sheet without having to code it in a click event.

Example

In this example pressing the tab item will open the defined tab sheet
Begin_Com Role(*EXTENDS #PRIM_WEB) Theme(#SYS_THEME) Layoutmanager(#LayoutPageLayout)
 
    Define_Com Class(#PRIM_TBLO) Name(#LayoutPageLayout)
    Define_Com Class(#PRIM_TBLO.Row) Name(#LayoutPageRow1) Displayposition(1) Parent(#LayoutPageLayout) Height(48) Units(Pixels)
    Define_Com Class(#PRIM_TBLO.Row) Name(#LayoutPageRow2) Displayposition(2) Parent(#LayoutPageLayout)
    Define_Com Class(#PRIM_TBLO.Column) Name(#LayoutPageColumn1) Displayposition(1) Parent(#LayoutPageLayout)
    Define_Com Class(#PRIM_TBLO.Item) Name(#LayoutPageItem) Column(#LayoutPageColumn1) Manage(#Tab) Parent(#LayoutPageLayout) Row(#LayoutPageRow1)
    Define_Com Class(#PRIM_TBLO.Item) Name(#LayoutPageLayoutItem1) Column(#LayoutPageColumn1) Manage(#TabFolder) Parent(#LayoutPageLayout) Row(#LayoutPageRow2)
    Define_Com Class(#PRIM_TBLO) Name(#LayoutTab)
    Define_Com Class(#PRIM_TBLO.Column) Name(#LayoutTabColum) Parent(#LayoutTab) Displayposition(1)
    Define_Com Class(#PRIM_TBLO.Row) Name(#LayoutTabRow1) Parent(#LayoutTab) Units(Pixels) Height(48) Displayposition(1)
    Define_Com Class(#PRIM_TBLO.Item) Name(#LayoutTabItem1) Manage(#TabItem3) Parent(#LayoutTab) Row(#LayoutTabRow1) Column(#LayoutTabColum) Flow(CenterHorizontal) Sizing(None)
    Define_Com Class(#PRIM_TBLO.Item) Name(#LayoutTabItem2) Manage(#TabItem2) Parent(#LayoutTab) Row(#LayoutTabRow1) Sizing(None) Column(#LayoutTabColum) Flow(CenterHorizontal)
    Define_Com Class(#PRIM_TBLO.Item) Name(#LayoutTabItem3) Manage(#TabItem1) Parent(#LayoutTab) Row(#LayoutTabRow1) Column(#LayoutTabColum) Flow(CenterHorizontal) Sizing(None)
 
    Define_Com Class(#PRIM_MD.Tab) Name(#Tab) Displayposition(1) Height(48) Parent(#COM_OWNER) Tabposition(1) Themedrawstyle('DarkTitle') Width(1200) Layoutmanager(#LayoutTab)
    Define_Com Class(#prim_md.TabItem) Name(#TabItem1) Displayposition(1) Height(48) Left(420) Tabposition(1) Top(0) Caption('Show Tab 1') Parent(#Tab) Tabsheet(#Sheet1) Width(120)
    Define_Com Class(#prim_md.TabItem) Name(#TabItem2) Displayposition(2) Height(48) Left(540) Tabposition(2) Top(0) Caption('Show Tab 2') Parent(#Tab) Tabsheet(#Sheet2) Width(120)
    Define_Com Class(#prim_md.TabItem) Name(#TabItem3) Displayposition(3) Height(48) Left(660) Tabposition(3) Top(0) Caption('Show Tab 3') Parent(#Tab) Tabsheet(#Sheet3) Width(120)
 
    Define_Com Class(#prim_tab) Name(#TabFolder) Parent(#COM_OWNER) Displayposition(2) Tabposition(2) Height(752) Left(0) Top(48) Width(1200)
    Define_Com Class(#PRIM_TBSH) Name(#Sheet1) Caption('Tab Sheet 1') Displayposition(1) Height(726) Left(0) Parent(#TabFolder) Tabposition(2) Tabstop(False) Top(26) Width(1200)
    Define_Com Class(#PRIM_TBSH) Name(#Sheet2) Caption('Tab Sheet 2') Displayposition(2) Height(726) Left(0) Parent(#TabFolder) Tabposition(3) Tabstop(False) Top(26) Width(1200)
    Define_Com Class(#PRIM_TBSH) Name(#Sheet3) Caption('Tab Sheet 3') Displayposition(3) Height(726) Left(0) Parent(#TabFolder) Tabposition(1) Tabstop(False) Top(26) Width(1200)
 
    Define_Com Class(#prim_md.Label) Name(#Label1) Parent(#Sheet1) Displayposition(1) Tabposition(1) Caption('Tab Sheet 1') Height(120) Left(0) Themedrawstyle('Title') Top(0) Width(360)
    Define_Com Class(#prim_md.Label) Name(#Label2) Parent(#Sheet2) Displayposition(1) Tabposition(1) Caption('Tab Sheet 2') Height(120) Left(0) Themedrawstyle('Title') Top(0) Width(360)
    Define_Com Class(#prim_md.Label) Name(#Label3) Parent(#Sheet3) Displayposition(1) Tabposition(1) Caption('Tab Sheet 3') Height(120) Left(0) Themedrawstyle('Title') Top(0) Width(360)
 
End_Com

See also

All Component Classes

Technical Reference

LANSA Version 15, April 2020