cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
  • JMP 19 is here! See the new features at jmp.com/new.
  • Register to attend Discovery Summit 2025 Online: Early Users Edition, Sept. 24-25.
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