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

Re: 표 상자에서 셀 높이 또는 텍스트 줄 바꿈을 설정하는 방법다음은 스크립팅 인덱스의 예입니다.
도움말==>스크립팅 인덱스==>데이터 테이블==>셀 높이 설정
Names Default To Here( 1 );
dt = Open( "$SAMPLE_DATA/Big Class.jmp" );
dt << Set Cell Height( 20 );