回复:如何在表格框中設置單元格高度或文本換行是否仍然無法將 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} )
)
);

我試過設置高度、設置寬度和設置最小/最大尺寸,但還沒有找到使單元格高於一行的方法。 接受建議,謝謝!
大規模定制