cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
  • Don’t miss your chance to experience Discovery Summit Europe at our best available rate! Early bird registration through 31 Oct.
  • Image to Table JMP extension imports single or batch images as data tables. Useful to extract curves from pictures or convert image data to curve data to use in analyses like Functional Data Explorer. Download and install the extension.

Discussions

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

Change string col box width in a table box

I'm trying to display long text in a string col box in a table box window and have them wrap visually across multiple lines without modifying the underlying text data. I've found some ideas in this post and this post but I can't make them work for a string col box.

Here's a minimal example to illustrate my issue, here I would like to make the string col box behave like the col box :

longstring = "toooooooooooooooooooooo looooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooong teeeeeeeeeeeeeeeeext.";
nw = New Window( "Display",
	tb = Table Box(
		col1 = Col Box( "Mycolbox" ),
		col2 = String Col Box( "Mystringcolbox", longstring )
	)
);

col1 << append( Text Box( longstring , <<set wrap( 350 ) ) );

I'm looking for a solution that change the display and not the string themselves, and applies as a post-proccessing step after the window is made.

Thanks in advance

1 REPLY 1
jthi
Super User

Re: Change string col box width in a table box

I don't think you can wrap the text in string col box and that is why you have to rely on col box + text box.

-Jarmo

Recommended Articles