Share your ideas for the JMP Scripting Unsession at Discovery Summit by September 17th. We hope to see you there!
Choose Language Hide Translation Bar
Highlighted
uday_guntupalli
Level VIII

Display Box Help

All,
     I have a simple display box I am trying to build, however I would like to be able to use Tabs instead of H list Box that I have shown below. Any help is appreciated. 

 

Close All(DataTables,"No Save");
dt = Open( "$SAMPLE_DATA/Big Class.jmp" );

Dist1 = 
Expr(
          Platform(dt,Distribution(Continuous Distribution( Column( :weight ) ),Nominal Distribution( Column( :age ) ))); 
       ); 
       
Biv = 
Expr(
             Platform(dt,Bivariate( Y( :weight ), X( :height ), Fit Line )); 
       );
       
NW1 = New Window("Test",
                                 OB1 = Outline Box("Inputs",
                                                     VL1 = V List Box(
                                                            
                                                                                ),
                                                            ),
                           );

TP1 = Tab Page Box(Title("Alpha"),Dist1); 
TP2 = Tab Page Box(Title("Beta"),Biv);
TB  = Tab Box("MyTest",VL2 = V List Box(HL1 = H List Box()));
HL1 << Append(TP1);
HL1 << Append(TP2); 
VL1 << Append(TB); 

 

Best
Uday
1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted
pmroz
Super User

Re: Display Box Help

Sounds like you want a tab box inside another tab box.  Will this do?

NW1 = New Window( "Test",
	OB1 = Outline Box( "Inputs",
		tb = tab box("My Test",
			tab box("Alpha", Dist1,
					 "Beta", Biv),
		),
	),
);

View solution in original post

3 REPLIES 3
Highlighted
pmroz
Super User

Re: Display Box Help

Would this be easier?

dt = Open( "$SAMPLE_DATA/Big Class.jmp" );
Dist1 = Expr(
	Platform(	dt,
		Distribution( Continuous Distribution( Column( :weight ) ),
			Nominal Distribution( Column( :age ) )
		)
	)
); 
Biv = Expr(Platform( dt, Bivariate( Y( :weight ), X( :height ), Fit Line ) ) );

NW1 = New Window( "Test",
	OB1 = Outline Box( "Inputs",
		tb = tab box("Alpha", Dist1,
					 "Beta", Biv
		),
	),
);
Highlighted
uday_guntupalli
Level VIII

Re: Display Box Help

@pmroz
         Thank you for your response. I am trying to create a parent-child display box where under a tab box titled "MyTest" for e.g., I would have "Aplha" and "Beta". By using the approach you have recommended, is there a way to achieve that ? 

Best
Uday
Highlighted
pmroz
Super User

Re: Display Box Help

Sounds like you want a tab box inside another tab box.  Will this do?

NW1 = New Window( "Test",
	OB1 = Outline Box( "Inputs",
		tb = tab box("My Test",
			tab box("Alpha", Dist1,
					 "Beta", Biv),
		),
	),
);

View solution in original post

Article Labels

    There are no labels assigned to this post.