PRIM_MD.MenuItem - TabSheet Property

Tab sheet to display when the menu item is clicked.

Member of PRIM_MD.MenuItem (PRIM_MD.MenuItem)

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 menu 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)
    Define_Com Class(#PRIM_TBLO.Column) Name(#LayoutPageColumn1) Displayposition(1) Parent(#LayoutPageLayout) Units(Pixels) Width(180)
    Define_Com Class(#PRIM_TBLO.Column) Name(#LayoutPageColumn2) Displayposition(2) Parent(#LayoutPageLayout)
    Define_Com Class(#PRIM_TBLO.Item) Name(#LayoutPageItem) Column(#LayoutPageColumn1) Parent(#LayoutPageLayout) Row(#LayoutPageRow1)
    Define_Com Class(#PRIM_TBLO.Item) Name(#LayoutPageLayoutItem1) Column(#LayoutPageColumn2) Manage(#TabFolder) Parent(#LayoutPageLayout) Row(#LayoutPageRow1)
    Define_Com Class(#PRIM_TBLO.Item) Name(#LayoutPageLayoutItem2) Manage(#Menu) Parent(#LayoutPageLayout) Row(#LayoutPageRow1) Column(#LayoutPageColumn1)
    
    Define_Com Class(#PRIM_TBLO) Name(#LayoutMenu)
    Define_Com Class(#PRIM_TBLO.Column) Name(#LayoutMenuColum) Parent(#LayoutMenu) Displayposition(1)
    Define_Com Class(#PRIM_TBLO.Row) Name(#LayoutMenuRow1) Parent(#LayoutMenu) Displayposition(1)
    Define_Com Class(#PRIM_TBLO.Item) Name(#LayoutMenuItem1) Manage(#MenuItem1) Parent(#LayoutMenu) Row(#LayoutMenuRow1) Column(#LayoutMenuColum) Flow(Down) Sizing(FitToWidth) Alignment(TopCenter)
    Define_Com Class(#PRIM_TBLO.Item) Name(#LayoutMenuItem2) Manage(#MenuItem2) Parent(#LayoutMenu) Row(#LayoutMenuRow1) Column(#LayoutMenuColum) Flow(Down) Sizing(FitToWidth) Alignment(TopCenter)
    Define_Com Class(#PRIM_TBLO.Item) Name(#LayoutMenuItem3) Manage(#MenuItem3) Parent(#LayoutMenu) Row(#LayoutMenuRow1) Column(#LayoutMenuColum) Flow(Down) Sizing(FitToWidth) Alignment(TopCenter)
    
    Define_Com Class(#PRIM_MD.Menu) Name(#Menu) Displayposition(1) Height(800) Parent(#COM_OWNER) Tabposition(1) Themedrawstyle('DarkTitle') Width(180) Layoutmanager(#LayoutMenu)
    Define_Com Class(#prim_md.MenuItem) Name(#MenuItem1) Parent(#Menu) Displayposition(1) Height(48) Left(0) Tabposition(1) Top(0) Caption('Show Tab 1') Tabsheet(#Sheet1) Width(180)
    Define_Com Class(#prim_md.MenuItem) Name(#MenuItem2) Parent(#Menu) Displayposition(2) Height(48) Left(0) Tabposition(2) Top(48) Caption('Show Tab 2') Tabsheet(#Sheet2) Width(180)
    Define_Com Class(#prim_md.MenuItem) Name(#MenuItem3) Parent(#Menu) Displayposition(3) Height(48) Left(0) Tabposition(3) Top(96) Caption('Show Tab 3') Tabsheet(#Sheet3) Width(180)
    
    Define_Com Class(#prim_tab) Name(#TabFolder) Parent(#COM_OWNER) Displayposition(2) Tabposition(2) Height(800) Left(180) Top(0) Width(1020)
    Define_Com Class(#PRIM_TBSH) Name(#Sheet1) Caption('Tab Sheet 1') Displayposition(1) Height(774) Left(0) Parent(#TabFolder) Tabposition(2) Tabstop(False) Top(26) Width(1020)
    Define_Com Class(#PRIM_TBSH) Name(#Sheet2) Caption('Tab Sheet 2') Displayposition(2) Height(774) Left(0) Parent(#TabFolder) Tabposition(3) Tabstop(False) Top(26) Width(1020)
    Define_Com Class(#PRIM_TBSH) Name(#Sheet3) Caption('Tab Sheet 3') Displayposition(3) Height(774) Left(0) Parent(#TabFolder) Tabposition(1) Tabstop(False) Top(26) Width(1020)
    
    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

V14SP2 April 2018