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


Draws a text annotation box at the specified pixel location that contains the string. The Text Box argument controls where the text annotation box is drawn in the window, from the upper left corner to the lower right corner.
Note that x1, y1, x2, and y2 are not graph axis values but the specific pixel locations in the window. Exactly where the text box appears depends on the user’s window size, display resolution, and so on.
Adds db2 as the last child of the db.
w = New Window( "Window",
Text Box( "Page Setup Test" )
w << Get Page Setup();
Captures db as a picture object. The scale is a factor of the original picture size. For example, Scale(2) makes the picture object twice as large.
New Window( "Title",
obj = Outline Box( "title" ) );
obj << Set Menu Script(
{"A", "", "A1", Print( "A1" ), "A2", Print( "A2" ),
"B", "", "B1", Print( "B1" ), "B2", Print( "B2" ), "B3", Print( "B3" ),
"C", Print( "C" )}
obj << Set Submenu( 1, 2 ); // menu A with 2 items in submenu A1 and A2
obj << Set Submenu( 4, 3 ); // menu B with 3 items in submenu B1, B2, and B3
For( inc = 1, inc <= N Items( Words( obj << Get Menu Script, "," ) ), inc++,
Insert Into( submenus, obj << Get Submenu( inc ) );
Aligns a child display box inside the display parent box according to the specified position. The default value is left, or you can specify center or right.
New Window( "Example",
Outline Box( "Parent display box",
Button Box( "OK", <<Horizontal Alignment( "Center" ) )
Consider including the message <<Update Window rather than including Wait(0). The problem with using Wait(n) is knowing how large n should be.
Many display box messages, such as <<Set Text, automatically mark the box as invalid, so the <<Inval message is usually unnecessary. Some interactive scripts that use sliders with JSL callbacks may need <<Update Window to keep various parts of the display synchronized with the slider.
Returns the enabled state of the control. The message is supported in Busy Light Box(), Button Box(), Calendar Box(), Check Box(), Col List Box(), Combo Box(), Completion Box(), Filter Col Selector(), gtext(), List Box(), Number Edit Box(), Popup Box(), Radio Box(), Range Slider Box(), Slider Box(), Spin Box(), Text Edit Box(), Tree Box(), Tree Map Box(), and Tree Map Seg().
Add db2 to the display tree before db.
Saves the display box as a graphic to the specified "path" in the specified "format". The optional Add Sibling argument adds the number of sibling display boxes to include in the capture. The default value is 1, which captures only the specified display box. Note that the specified portion of the report is not guaranteed to be scrolled into view or unobstructed by other windows. If the display box is not visible, the saved graphic will not contain the contents that you expect.
dt = Open( "$SAMPLE_DATA/Big Class.jmp" );
biv = dt << Bivariate( y( weight ), x( height ) );
rbiv << Save Interactive HTML( "$DOCUMENTS/MyInteractiveHTML.htm" );
The PDF file contains headers and footers. Use Save Picture to omit these components.
Valid file formats include PDF, PNG, GIF, JPG or JPEG, and EMF.
Use Save Picture to export a report as a PDF file with no headers or footers. Use Save PDF to include these components.
db<<Save Presentation("path", <template("path")>, <(Insert("Begin"|"End"|N) | Replace("Begin"|"End"|N) | "Append")>, <Outline Titles("None"|"Hide"|"TopLeft"|"TopRight"|"BottomLeft"|"BottomRight")>, <format>)
The quoted location of the saved file. You must include the .pptx extension in the filename. An existing file with the same name is overwritten.
n inserts the slides as the nth slide number.
"Begin" inserts the slides at the beginning of the presentation.
"End" inserts the slides at the end of the presentation.
"None" omits the slide title above the graphic and the outline titles.
"Hide" omits the outline titles.
"TopLeft", "TopRight", "BottomLeft", "BottomRight" determine the position of the outline titles on the slide. The outline title and its parent titles are included.
Optional. The quoted format of the embedded graphics. Options are "Native", "EMF", "PNG", "JPG", "BMP", "GIF", "TIF". On Windows, the native format is EMF. On Macintosh, the native format is PDF. See “Notes” for compatibility issues. Without this argument, JMP applies the “Image Format for PowerPoint” General preference.
Sets the page settings. Margins are set in inches. Scale variable s is a number in the range of 10 (for 1000%) to 0.2 (for 20%) with the default as 1 (for 100%). If portrait is True the page is oriented for portrait, otherwise the page is landscape. Paper size is a string specifying the paper size, for example, "Letter" or "Legal".
w = New Window( "Window",
Text Box( "Page Setup Test" )
w << Set page setup(
margins( 1, 1, 1, 1 ),
paper size( "Letter" )
w = New Window( "Window", Text Box( "Header Example" ) );
w << Set Print Headers(
"Today is: &d;" // left,
"&wt;" // center,
"Page &pn; of &pc;" // right
w << Print Window;
w = New Window( "Window", Text Box( "Footer Example" ) );
w << Set Print Footers(
"Today is: &d;" // left,
"&wt;" // center,
"Page &pn; of &pc;" // right
w << Print Window;
New Window( "title", ob = Outline Box( "title" ) );
ob << Set Menu Script(
{"A", "", "A1", Print( "A1" ), "A2", Print( "A2" ),
"B", "", "B1", Print( "B1" ), "B2", Print( "B2" ), "B3", Print( "B3" ),
"C", Print( "C" )}
ob << Set Submenu(1, 2); // menu A with 2 items in submenu A1 and A2
ob << Set Submenu(4, 3); // menu B with 3 items in submenu B1, B2, and B3
In some interactive JSL scripts that combine sliders with JSL callbacks, you might need to use <<Update Window to keep parts of the display synchronized with the slider.