如何在表格框中設置單元格高度或文本環繞我正在嘗試在顯示窗口的表格框中顯示一些信息。 一個單元格中的文本很長,以至於它會擴展列寬,但不會將文本換行以擴展單元格高度。 有沒有辦法在腳本中改變它,使單元格更高而不是更寬?
這是我當前腳本的一個示例:
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 );