JMP App(Set Name("Application"), Set Description("Description"), Auto Launch(1), Snap To Grid(1), Show Grid(1), Show Properties(1), Show Sources(1), Group By Category(1), Dashboard Mode(0), Parameters, Tables, Script(JSL Quote(// This script is executed first when the application runs. // We look for the demo files in a known location and query the // user if they are not found. )), Allocate(Module1 = Plan(PreAllocate, Script(JSL Quote(// This script is executed when a new module instance is // created. The pre-defined object "thisModuleInstance" refers // to the instance object, but other objects such as boxes and // scripts have not yet been created. Variables declared here are // scoped to the ModuleInstance namespace. // This special function will receive parameters passed to CreateInstance() OnModuleLoad( {}, ); thisModuleInstance << Create Objects; // After this point your module instance objects have been created // and can be referred to by name (for example, "Button1"). BackButtonPress = Function( {this}, // This function is called when the button is pressed curIndex = TabSlides << Get Selected; If( curIndex == 1, TabSlides << Set Selected( TabSlides << Get Tab Count ), 1, TabSlides << Set Selected( curIndex - 1 ) ); ); FwdButtonPress = Function( {this}, // This function is called when the button is pressed curIndex = TabSlides << Get Selected; If( curIndex == (TabSlides << Get Tab Count), TabSlides << Set Selected( 1 ), 1, TabSlides << Set Selected( curIndex + 1 ) ); ); // Titanic data for 1D contour examples OpenTitanic=Function({this},{dt}, dt=Open("$SAMPLE_DATA/Titanic Passengers.jmp", "Invisible"); Column(dt,"Name") << Label; dt << Graph Builder( Variables( X( :Fare ), Y( :Survived ) ), Elements( Points( X, Y, Legend( 3 ) ) ) ); ); // Cytometry data for 2D contour examples OpenCytometry=Function({this},{dt}, dt=Open("$SAMPLE_DATA/Cytometry.jmp", "Invisible"); New Window("Graph Builder", gb1 = dt << Graph Builder( Variables( X( :CD3 ), Y( :CD8 ) ), Elements( Points( X, Y, Legend( 5 ) ) ) ), Check Box( {"Show Depth Hulls"}, <