该帮助的版本不再更新,请参见https://www.jmp.com/support/help/zh-cn/15.2 获取最新的版本.


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" )
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
Title( "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
Title( "Second page" ), // name of the tab
Text Box( "first line of second page" ),
Text Box( "second line of second page" )
注意:Tab Page Box() requires that the title be defined in a Title() function.
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.