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
Neo
Neo
Level VI

Window with custom text with background colour in JSL

I would like to create a window with user defined text (in this case "Parameter 1") and pass it to a journal in a H List box (this part I should be able to do).

How to create such a bordered box/window/panel in JSL - I need control on the size of the box and preferably also on the background colour (say grey to start with)?

VdummyWindow.PNG

When it's too good to be true, it's neither
1 ACCEPTED SOLUTION

Accepted Solutions
jthi
Super User

Re: Window with custom text with background colour in JSL

Border Box, Text Box and Spacer Boxes (to control size) should get you what you want

Names Default To Here(1);
win = New Window("Example",
	Border Box(Sides(15), << Set Background Color("Gray"),
		fontobj = text = Text Box("Example Text", << Rotate Text("left"))
	)
);

jthi_0-1643047232422.png

 

-Jarmo

View solution in original post

1 REPLY 1
jthi
Super User

Re: Window with custom text with background colour in JSL

Border Box, Text Box and Spacer Boxes (to control size) should get you what you want

Names Default To Here(1);
win = New Window("Example",
	Border Box(Sides(15), << Set Background Color("Gray"),
		fontobj = text = Text Box("Example Text", << Rotate Text("left"))
	)
);

jthi_0-1643047232422.png

 

-Jarmo