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

我已经尝试过“设置高度”、“设置宽度”和“设置最小/最大尺寸”,但还没有找到一种方法使单元格高于一行。欢迎提出建议,谢谢!
大规模定制回复:如何设置表格框中的单元格高度或文本环绕是否仍然无法对String Col Box 设置换行?
我有一个由 2 列(字符串列框)和 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>
<P>这是生成的窗口:</P>
<P> </P>
<P><SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Capture.PNG" style="width: 451px;"><span class="lia-inline-image-display-wrapper" image-alt="Capture.PNG" style="width: 451px;"><img src="https://us.v-cdn.net/6038925/uploads/images/6978iB6870A0830A701FC/Capture.PNG" role="button" title="Capture.PNG" alt="Capture.PNG" /></span></SPAN></P>回复:如何设置表格框中的单元格高度或文本环绕这是脚本索引中的示例
帮助==>脚本索引==>数据表==>设置单元格高度
Names Default To Here( 1 );
dt = Open( "$SAMPLE_DATA/Big Class.jmp" );
dt << Set Cell Height( 20 );