cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
The Discovery Summit 2025 Call for Content is open! Submit an abstract today to present at our premier analytics conference.
Choose Language Hide Translation Bar
View Original Published Thread

How can Display Boxes be center aligned?

BabyDoragon
Level II

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