如何設定表格框中的儲存格高度或文字環繞我正在嘗試在顯示視窗的表格框中顯示一些資訊。一個單元格中的文字太長,以至於會擴展列寬,但不會透過換行來擴展單元格高度。有沒有辦法在腳本中更改此設置,使單元格更高而不是更寬?
這是我目前腳本的範例:
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 );