如何在表格框中设置单元格高度或文本环绕我正在尝试在显示窗口的表格框中显示一些信息。 一个单元格中的文本很长,以至于它会扩展列宽,但不会将文本换行以扩展单元格高度。 有没有办法在脚本中改变它,使单元格更高而不是更宽?
这是我当前脚本的一个示例:
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} )
)
);

我试过设置高度、设置宽度和设置最小/最大尺寸,但还没有找到让单元格高于一条线的方法。 欢迎提出建议,谢谢!
脚本回复:如何在表格框中设置单元格高度或文本换行是否仍然无法将 Wrap 设置为字符串 Col 框?
我有一个由 2 列(String Col Box)和 24 行组成的表格,我需要将文本包装在 48 个单元格中的 3 个单元格中,以使表格适合 pdf 的一页(由于保存日记)。 我不确定上述解决方案是否可以帮助解决我的问题...
回复:如何在表格框中设置单元格高度或文本换行这做到了! 感谢你能这么快回复!回复:如何在表格框中设置单元格高度或文本换行糟糕......我读的是数据表,而不是表格框......我的错误
回复:如何在表格框中设置单元格高度或文本换行String Col Box 不支持单行中的多行。 但是,您可以使用 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 );