cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
  • New to JMP? Join us Sept. 23-24 for the Early User Edition of Discovery Summit, tailor-made for new users. Register now for free!
  • Use World Cup data to build models, explore spatial relationships, and create informative visualizations in JMP. Register. July 17, 2 pm US Eastern Time.
  • Your voice matters! Tell us how you prefer to receive JMP updates, so we can tailor our communication to your needs. Take short survey.

Discussions

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

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