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