Like stacked canvases, use the SHOW_VIEW, HIDE_VIEW, and SET_VIEW_PROPERTY Built-ins to show and hide a tab canvas programmatically.
To show or hide a tab page, use the SET_TAB_PAGE_PROPERTY Built-in. To make a tab page the topmost page on a canvas, use the SET_CANVAS_PROPERTY Built-in. To change the tab page on which an item is displayed, use the SET_ITEM_PROPERTY Built-in.
To show or hide a tab page:
To enable or disable a tab page:
To make a tab page the top-most on its underlying tab canvas:
/*
** Example 1: This procedure call shows the tab page TAB1 on the
** tab canvas CAN5:
*/
SET_TAB_PAGE_PROPERTY('can5.tab1', visible, property_true);
/* Example 2: This procedure call disables tab page TAB1, but
** leaves it visible on its underlying tab canvas CAN5:
*/
SET_TAB_PAGE_PROPERTY('can5.tab1', enabled, property_false);
/* Example 3: This procedure call makes tab page TAB1 the
** top-most page on its underlying tab canvas CAN5:
*/
SET_CANVAS_PROPERTY('can5', topmost_tab_page, 'tab1');