cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
  • 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

Getting a border box to appear on a button press.

I am trying to open up a border box to the right of my list box on a button press, how can this be achieved? I have attached my attempted code below.

 

New Window("test",

		title = Text Box("test", set font style("Bold")),
			
		V List Box(
			lb = List Box( "Test", width(150),nlines( 18 ) ),
		),
		
		H List Box(
			Button = Button Box("Test",
				Spacer Box(Size(50, 25)),
				Border Box(
				Left(50), Right(50), Top(0), Bottom(50), Sides(50), Text Box("Test"),
			),
		),	
	),
);
1 REPLY 1
ErraticAttack
Level VI

Re: Getting a border box to appear on a button press.

Here is one way this can be achieved.  As a side note -- it can be easier to understand the tree structure if you put commas at the level of the enclosing fence.

 

New Window( "test", 
	window:title = Text Box( "test", set font style( "Bold" ) )
, 
	window:hlb = H List Box(
		V List Box(
			window:lb = List Box( {"Test"}, Width( 150 ), N Lines( 18 ) )
		)
	)
, 	
	H List Box(
		window:Button = Button Box( "Test",
			window:hlb << Append(
				Border Box( Sides( 15 ), Left( 50 ), Right( 50 ), Top( 0 ), Bottom( 50 ),
					Text Box( "Test" )
				)
			)
		)
	)
);
Jordan

Recommended Articles