cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
  • Instantly extract effect sizes, F-ratios, and FDR-adjusted p-values from your models with the Calculate Effects Sizes extension, available now in the JMP Marketplace!
  • 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!
  • 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
Djtjhin
Level IV

Vertical Alignment for Line Up Box

I'm combining text box, number edit box and button box in a lineup box alignment but ended up getting a display which is not necessarily straight (see snapshot). Is there a way to address this so that each box are align proportionally ?

new window("Test",
	line up box(ncol(3),
		Text box("Variable 1"),Number edit box(0),Button box("Create Column"),
		Text box("Variable 2"),Number edit box(0),TExt box(""),
		Text box("Variable 3"),Number edit box(0),Button box("Create Column")
	)
)
1 ACCEPTED SOLUTION

Accepted Solutions
txnelson
Super User

Re: Vertical Alignment for Line Up Box

The different objects have different dimensions, so what I do, is adjust them by using spacer boxes

lineuup.PNG

new window( "Test",
	line up box( N Col( 2 ),
		V List Box(
			Spacer Box( size( 0, 2 ) ),
			H List Box(
				Text Box( "Variable 1" ),
				Number Edit Box( 0 )
			)
		),
		Button Box( "Create Column" ),
		H List Box(
			Text Box( "Variable 2" ),
			Number Edit Box( 0 )
		),
		Text Box( "" ),
		V List Box(
			Spacer Box( size( 0, 2 ) ),
			H List Box(
				Text Box( "Variable 3" ),
				Number Edit Box( 0 )
			)
		),
		Button Box( "Create Column" )
	)
)

 

 

 

Jim

View solution in original post

1 REPLY 1
txnelson
Super User

Re: Vertical Alignment for Line Up Box

The different objects have different dimensions, so what I do, is adjust them by using spacer boxes

lineuup.PNG

new window( "Test",
	line up box( N Col( 2 ),
		V List Box(
			Spacer Box( size( 0, 2 ) ),
			H List Box(
				Text Box( "Variable 1" ),
				Number Edit Box( 0 )
			)
		),
		Button Box( "Create Column" ),
		H List Box(
			Text Box( "Variable 2" ),
			Number Edit Box( 0 )
		),
		Text Box( "" ),
		V List Box(
			Spacer Box( size( 0, 2 ) ),
			H List Box(
				Text Box( "Variable 3" ),
				Number Edit Box( 0 )
			)
		),
		Button Box( "Create Column" )
	)
)

 

 

 

Jim

Recommended Articles