Constructs a button with the text title that executes script when clicked.
New Window( "Calendar Box Example", cal = Calendar Box() );
date = Date MDY (10, 5, 1989);
cal << Date( date );
cal << Show Time( 0 ); // omit the time
 
cal << Min Date( Date Increment(date, "Day", -60, "start" ) );
// earliest date that can be selected is 60 days before 10/5/1989
// "start" truncates the value so the time is not included
 
cal << Max Date( Date Increment(date, "Day",  60, "start" ) );
// latest date that can be selected is 60 days after 10/5/1989
 
cal << Set Function( Function( {this}, Print( Abbrev Date(this << Get Date()) ) ) );
// print the abbreviated date to the log
Returns 1 if the check box item specified by n is selected, or 0 otherwise.
Sets the check box item specified by n as either selected (1) or cleared (0).
Sets the check box item specified by n as either enabled (1) or disabled (0). The state of a disabled check box cannot be changed.
New Window( "Example", Check Box( {"one", "two", "three"}, <<Set( 1, 1 ) ) );
an optional command that adds all columns of the current data table into the list. Omitting "all" results in an empty collistbox with the “optional” label. To display “optional character”, specify "character". To display “optional numeric”, specify "numeric".
an optional command that sets the width of the list box to pixels. Pixels is a number that measures pixels.
An optional number that only allows n columns to be added to the list.
An optional number that only requires at least n columns for the list. If n=2, the top two slots in the Col List Box an initial display of “required numeric” (or whatever you set the data type to be).
Overrides any tool tips set using Set Tips() function. If there is a tip set for the box, you cannot set tips for each individual item.
Using Set Tip() with no arguments clears the list box tip and allows the individual item tool tips to be displayed.
The maxSelected argument only affects whether one or more than one item can be selected. It does not enforce a limit greater than 1.
Any additional Dialog items (for example, Max Col, Datatype).
Dialog is deprecated. Use New Window() with the Modal argument instead. See Convert Deprecated Dialog to New Window in the Scripting Guide for details.
Returns a display box containing the excerpt designated by the report held at number report and the list of display subscripts subscripts. The subscripts reflect the current state of the report, after previous excerpts have been removed.
Converts expr() to a picture as it would appear in the Formula Editor.
an optional command that sets the width of the box to pix. pix is a number that measures pixels.
Constructs a box for editing global value directly.
Properties can include: framesize(x, y), Xname("title"), Yname("title"), Zname("title").
Named property arguments: title("title"), XScale(low, high), YScale(low, high), FrameSize(h, v), XName("x"), YName("y"), SuppressAxes.
Returns a display box that arranges the display boxes provided by the arguments in a horizontal layout. The <<Hold() message tells the sheet to own the report(s) that is excerpted.
H Splitter Box(<size(h,v)>, display box, <arguments>)
size(h,v)
Specifies the proportions of the last panel. <<Size(.25) resizes the last panel to 25% the splitter box height (or width, for vertical splitter boxes).
Specifies the proportions of each panel. db<<Set Sizes({.75, .25}) sizes the first panel to 75% and the second panel to 25% of the splitter box height (or width, for vertical splitter boxes).
<<Close Panel(n, <Boolean>)
Closes the panel that you specify. <<Close Panel(2) closes the second panel. With three or more panels, you must include the second Boolean value. That value indicates which panel expands to fill the space left by the closed panel.
<<Close Panel(2,0) closes the second panel; the following sibling takes the extra space.
<<Close Panel(2,1) closes the second panel; the preceding sibling takes the extra space.
<<Open Panel(n, <Boolean>)
Opens the panel that you specify. With three or more panels, you must include the second Boolean value. Works similar to <<Close Panel described above. The panels are initially opened. You use <<Open Panel only after using <<Close Panel.
Constructs a node of a tree (similar to Diagram output) containing text. Hier Box can contain additional Hier Boxes, allowing you to create a tree. The text can be a Text Edit Box.
Icon Box( "Nominal" ) constructs a display box that contains the Nominal icon.
Icon Box( "$SAMPLE_IMAGES/pi.gif" ) inserts the pi.gif sample image.
1 displays the display boxes inside the If Box; if 0, does not display them.
Constructs a display box that displays the quoted string journal box. We recommend that you do not generate the journal text by hand.
Displays the matrix given in the usual array form.
Specifies the object that the user interacts with, such as a Text Box or Button Box. See the Scripting Index in the Help menu for details.
	New Image( "r", [r matrix] );
	New Image( "rgb", {[r matrix], [g matrix], [b matrix]} );
	New Image( "rgba", {[r matrix], [g matrix], [b matrix], [a matrix]} );
Creates a new script window. The optional quoted string script is placed inside the script window.
Makes the new window a modal window, which prevents any other actions in JMP until the window is closed. If you do not include an OK or Cancel button, one is added automatically for you. Note: If used, this argument must be the second argument, directly after the window title. Available modal window arguments are:
<<On Open(expr) runs expr when the window is created.
Note: In data tables, On Open (or OnOpen) scripts that execute other programs are never run. Set the Evaluate OnOpen Scripts preference to control when the script is run.
<<On Close (expr) runs expr when the window is closed. Returns 0 if the window fails to close.
<<On Validate (expr) runs expr when the OK button is pressed. If it returns True, the window is closed otherwise the window remains open.
<<Return Result changes the window’s return value when it closes to match that of the deprecated Dialog() function.
Dialog() was deprecated in JMP 10. Use New Window() with the Modal argument instead. See Convert Deprecated Dialog to New Window in the Scripting Guide for details about using New Window().
Creates a column named title with numeric entries given in list or matrix form.
Creates a column named title with numeric entries given in list or matrix form. The numbers can be edited.
Creates a new outline named title containing the listed display boxes.
Creates a display box labeled with the quoted string title that contains the listed display boxes.
New Window( "Example",
	Picture Box( Open( "$SAMPLE_IMAGES/pi.gif", gif ) ) );
Returns a display box labeled with the quoted string title to graph the numbers. The numbers can be either a list or a matrix.
Range Slider Box() returns a display box that shows a range slider control that ranges from minValue to maxValue. As the two sliders' positions change, their values are placed into lowVariable and highVariable, and the script is run.
Returns the display tree of a platform obj. This can also be sent as a message to a platform:
obj<<Report
Creates an x by y-sized scene box for 3-D graphics.
Constructs an editable box that contains the quoted string script. The editable box is a script window and can both be edited and run as JSL.
Scroll Box(<size(h,v)>, <flexible(Boolean)>, display box, ...)
Optional. The h and v arguments specify the size of the box in pixels.
<<Set Background Color( {R, G, B} | <color> )
<<Set Scrollers (h, v)
<<Get Scrollers
<<Set Scroll Position (h,v)
<<Get Scroll Position
<<Get Scroll Extents
win = New Window( "Example",
	sb = Scroll Box(
		Size( 150, 75 ),
		List Box(
			{"First Item", "Second Item",
			"Third Item", "Fourth Item",
			"Fifth Item"},
			width( 200 ),
			max selected( 2 ),
			nlines( 6 )
		)
	)
);
win << Set Window Size( 300, 200 );
sb << Set Scrollers( 1, 1 ); // enable both scroll bars
sb << Set Scroll Position( 0, 20 ); // position the scrollers on the scroll bar
Returns a display box containing the display box argument with the quoted string title as its title.
You can send Set Width and Rescale Slider as commands to a slider object. For example:
ex = .6;
New Window( "Example", mybox = Slider Box( 0, 1, ex, Show( ex ) ) );
mybox << Set Width( 200 ) << Rescale Slider( 0, 5 );
Spacer Box(<size(h,v)>, <color(color)>)
Optional. The h and v arguments specify the size of the box in pixels.
Creates column in the table containing the string items listed. The string boxes are editable.
data = obj << Get;
(Previously called Tab List Box.) Creates a tabbed window pane. The arguments are an even number of items alternating between the name of a tab page and the contents of the tab page.
Certain messages you can send to Tab Page Box have been renamed, as follows:
Set Title to Title
Set Tip to Tip
Set Icon to Icon
Set Closeable to Closeable
New Window( "Example",
	Tab Box(
		t1 = Tab Page Box( "alpha", Panel Box( "panel", Text Box( "text" ) ) ),
		t2 = Tab Page Box( "beta", Popup Box( {"x", ex = 1, "y", ex = 2} ) ),
	)
);
Creates a report table with the display boxes listed as columns.
Tree Box(<{rootnodes}>, <size(width, height)>, <MultiSelect>)
Specifies the names for the root nodes created by Tree Node() which the box contains.
tri = Triangulation(
	X( [0 0 1 1], [0 1 0 1] ),
	Y( [0 1 2 3] )
);
dt = Open( "$SAMPLE_DATA/Cities.jmp" );
tri = Triangulation( X( :X, :Y ), Y( :POP ) );
Returns a display box that arranges the display boxes provided by the arguments in a vertical layout. The <<Hold() message tells the sheet to own the report(s) that is excerpted.
V Splitter Box(<size(h,v)>, display box, <arguments>)
dt = Open( "$SAMPLE_DATA/PopAgeGroup.jmp" );
New Window( "Example",
	H Splitter Box(
		Size( 800, 300 ),
		wb = Web Browser Box( "http://www.jmp.com" ),
		dt << Run Script( "Bubble Plot Region" )
	)
);
wb << Set Auto Stretching( 1, 1 ); // auto stretch horizontally and vertically
wb << Set Max Size( 10000, 10000 ); // maximum size in pixels

Help created on 9/19/2017