테이블 상자에서 셀 높이 또는 텍스트 줄 바꿈을 설정하는 방법디스플레이 창의 테이블 상자에 일부 정보를 표시하려고 합니다. 한 셀의 텍스트가 너무 길어서 열 너비가 확장되지만 셀 높이를 확장하기 위해 텍스트를 줄 바꿈하지는 않습니다. 셀이 더 커지고 더 넓어지지 않도록 스크립트에서 이를 변경할 수 있는 방법이 있습니까?
이것은 현재 스크립트의 예입니다.
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} )
)
);

높이 설정, 너비 설정 및 최소/최대 크기 설정을 시도했지만 셀을 한 줄보다 높게 만드는 방법을 찾지 못했습니다. 제안을 받아보세요. 감사합니다!
대량 맞춤화Re: 표 상자에서 셀 높이 또는 텍스트 줄 바꿈을 설정하는 방법아직도 String Col Box에 Wrap을 설정할 수 없나요?
2개의 열(String Col Box)과 24개의 행으로 구성된 테이블이 있습니다. 테이블을 PDF의 한 페이지에 맞추려면(저널을 저장한 결과) 48개의 셀 중 3개에 텍스트를 래핑해야 합니다. 위의 해결 방법이 내 문제를 해결하는 데 도움이 될지 잘 모르겠습니다.
Re: 표 상자에서 셀 높이 또는 텍스트 줄 바꿈을 설정하는 방법이걸로 됐어! 빠른 답변 감사드립니다!Re: 표 상자에서 셀 높이 또는 텍스트 줄 바꿈을 설정하는 방법이런.....테이블 상자가 아니라 데이터 테이블을 읽었습니다.....내 오류입니다.
Re: 표 상자에서 셀 높이 또는 텍스트 줄 바꿈을 설정하는 방법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>Re: 표 상자에서 셀 높이 또는 텍스트 줄 바꿈을 설정하는 방법다음은 스크립팅 인덱스의 예입니다.
도움말==>스크립팅 인덱스==>데이터 테이블==>셀 높이 설정
Names Default To Here( 1 );
dt = Open( "$SAMPLE_DATA/Big Class.jmp" );
dt << Set Cell Height( 20 );