cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
  • New to JMP? Join us Sept. 23-24 for the Early User Edition of Discovery Summit, tailor-made for new users. Register now for free!
  • Your voice matters! Tell us how you prefer to receive JMP updates, so we can tailor our communication to your needs. Take short survey.
  • See how to access JMP Marketplace - and - find, create & share add-ins to extend your JMP. Watch video.

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