回复:如何在表格框中设置单元格高度或文本换行是否仍然无法将 Wrap 设置为弦列盒?
我有一个由 2 列(String Col Box)和 24 行组成的表格,我需要将文本包装在 48 个单元格中的 3 个单元格中,以使表格适合 pdf 的一页(保存日记的结果)。 我不确定上述解决方案是否可以帮助解决我的问题......
回复:如何在表格框中设置单元格高度或文本换行做到了! 感谢你能这么快回复!回复:如何在表格框中设置单元格高度或文本换行哎呀.....我读的是数据表,而不是表框.....我的错误
回复:如何在表格框中设置单元格高度或文本换行String Col Box 不支持单行中的多行。 但是,您可以使用列框并为需要跨越多行的列的每一行附加文本框。
这是您示例的更新版本。 请注意,将显示框添加到 Col Box 的唯一方法是使用 Append。 我们希望在 JMP 的未来版本中为此增加更多的灵活性。
longstring = "In the loveliest town of all, where the houses were white and high and the elms trees were green and higher than the houses, where the front yards were wide and pleasant and the back yards were bushy and worth finding out about, where the streets sloped down to the stream and the stream flowed quietly under the bridge, where the lawns ended in orchards and the orchards ended in fields and the fields ended in pastures and the pastures climbed the hill and disappeared over the top toward the wonderful wide sky, in this loveliest of all towns Stuart stopped to get a drink of sarsaparilla.";
string2 = "The End.";
nw = New Window( "Display",
tb = Table Box(
col1 = Col Box( "MyString" ),
col2 = String Col Box( "Column2", {string2} )
)
);
col1 << append( Text Box( longstring , <<SET wrap=""></SET>
这是结果窗口:

回复:如何在表格框中设置单元格高度或文本换行这是脚本索引中的示例
帮助==>脚本索引==>数据表==>设置单元格高度
Names Default To Here( 1 );
dt = Open( "$SAMPLE_DATA/Big Class.jmp" );
dt << Set Cell Height( 20 );
如何在表格框中设置单元格高度或文本换行我试图在显示窗口的表格框中显示一些信息。 一个单元格中的文本太长以致于它扩展了列宽但没有换行以扩展单元格高度。 有没有办法在脚本中更改它,使单元格更高而不是更宽?
这是我当前脚本的示例:
longstring =
"In the loveliest town of all, where the houses were white and high \!Nand the elms trees were green and higher than the houses, where the front yards were \!Nwide and pleasant and the back yards were bushy and worth finding out about, \!Nwhere the streets sloped down to the stream and the stream flowed \!Nquietly under the bridge, where the lawns ended in orchards and the orchards ended \!Nin fields and the fields ended in pastures and the pastures climbed the hill and \!Ndisappeared over the top toward the wonderful wide sky, \!Nin this loveliest of all towns Stuart stopped to get a drink of sarsaparilla.";
string2 = "The End.";
nw = New Window( "Display",
tb = Table Box(
string_col1 = String Col Box( "MyString", {longstring} ),
string_col2 = String Col Box( "Column2", {string2} )
)
);

我试过设置高度、设置宽度和设置最小/最大尺寸,但还没有找到使单元格高于一行的方法。 接受建议,谢谢!
大规模定制