cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Try the Materials Informatics Toolkit, which is designed to easily handle SMILES data. This and other helpful add-ins are available in the JMP® Marketplace
Choose Language Hide Translation Bar
BabyDoragon
Level I

How can objects be aligned with a central line?

How can the two objects in the following JSL be aligned along their respective central lines as shown in the image?

New Window( "Test", 

	Text Box( "Test Center alignment" ),
	CB = Combo Box( {"1", "2", "3", "4"}, );
);

螢幕擷取畫面 2025-01-08 194150.png 

1 ACCEPTED SOLUTION

Accepted Solutions
jthi
Super User

Re: How can objects be aligned with a central line?

You can use H/V List Box(align("center")) or H/V Center Box

Names Default To Here(1);

nw = New Window("Test",
	V List Box(
		align("center"),
		Text Box("Test Center alignment"),
		CB = Combo Box({"1", "2", "3", "4"})
	)
);

Display Functions 

jthi_0-1736333635172.png

jthi_1-1736333641555.png

 

-Jarmo

View solution in original post

1 REPLY 1
jthi
Super User

Re: How can objects be aligned with a central line?

You can use H/V List Box(align("center")) or H/V Center Box

Names Default To Here(1);

nw = New Window("Test",
	V List Box(
		align("center"),
		Text Box("Test Center alignment"),
		CB = Combo Box({"1", "2", "3", "4"})
	)
);

Display Functions 

jthi_0-1736333635172.png

jthi_1-1736333641555.png

 

-Jarmo