Tab Page Box() organizes the title and contents of the page in one display box. When Tab Page Box() is inside Tab Box(), a tabbed window with multiple tabbed pages appears. Tab Box and Tab Page Box provides more information.
In previous versions of JMP, display boxes such as V List Box() contained tab contents. Consider the following script:
win = New Window( "Tab Box",
tb = Tab Box(
"First page", // name of the tab
V List Box( // tab contents
Text Box( "first line of first page" ),
Text Box( "second line of first page" )
),
"Second page", // name of the tab
V List Box( // tab contents
Text Box( "first line of second page" ),
Text Box( "second line of second page" )
),
)
);
Beginning with JMP 13, we recommend that Tab Box() contain a Tab Page Box() for each tab. The preceding example is rewritten as follows:
win = New Window( "Tab Box",
tb = Tab Box(
Tab Page Box( // tab contents
"First page of my tab box", // name of the tab
Text Box( "first line of first page" ),
Text Box( "second line of first page" )
),
Tab Page Box( // tab contents
"Second page", // name of the tab
Text Box( "first line of second page" ),
Text Box( "second line of second page" )
)
)
);
When a tab page box is created or dragged outside a tab box, the tab page box is a stand-alone container. The title appears in a shaded box at the top of the page, similar to the title in Sheet Part(); the title does not appear in an interactive tab. Dashboard with One Row of Reports provides an example.
Some messages previously used for Tab Box() are deprecated. Their counterparts are compatible with Tab Page Box().
See Tab Box and Tab Page Box for more information about the two display boxes.