cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
  • Don’t miss your chance to experience Discovery Summit Europe at our best available rate! Early bird registration through 31 Oct.
  • Image to Table JMP extension imports single or batch images as data tables. Useful to extract curves from pictures or convert image data to curve data to use in analyses like Functional Data Explorer. Download and install the extension.

Discussions

Solve problems, and share tips and tricks with other JMP users.
Choose Language Hide Translation Bar
Andyon98
Level III

Adding a second button onto a new window.

How do I add another button to an existing “New Window”? I’ve been trying but one button only shows up, also how do I position a button to where I want it and choose the size of the button.
1 ACCEPTED SOLUTION

Accepted Solutions
txnelson
Super User

Re: Adding a second button onto a new window.

Here is a simple example.

txnelson_0-1655129597154.png

Names Default To Here( 1 );
New Window( "Example",
	H List Box(
		bb1 = Button Box( "Push 1", Show( "button 1" ) ),
		bb2 = Button Box( "Push 2", Show( "button 2" ) )
	)
);

Make sure you are not ending statements within the window definition with ":".   

The following

Names Default To Here( 1 );
New Window( "Example",
	H List Box(
		bb1 = Button Box( "Push 1", Show( "button 1" ) );
		bb2 = Button Box( "Push 2", Show( "button 2" ) );
	)
);

only produces 

txnelson_1-1655129886693.png

 

Jim

View solution in original post

1 REPLY 1
txnelson
Super User

Re: Adding a second button onto a new window.

Here is a simple example.

txnelson_0-1655129597154.png

Names Default To Here( 1 );
New Window( "Example",
	H List Box(
		bb1 = Button Box( "Push 1", Show( "button 1" ) ),
		bb2 = Button Box( "Push 2", Show( "button 2" ) )
	)
);

Make sure you are not ending statements within the window definition with ":".   

The following

Names Default To Here( 1 );
New Window( "Example",
	H List Box(
		bb1 = Button Box( "Push 1", Show( "button 1" ) );
		bb2 = Button Box( "Push 2", Show( "button 2" ) );
	)
);

only produces 

txnelson_1-1655129886693.png

 

Jim

Recommended Articles