Cómo establecer la altura de la celda o el ajuste del texto en un cuadro de tablaEstoy intentando mostrar información en un cuadro de tabla en una ventana de visualización. El texto en una celda es tan largo que extiende el ancho de la columna pero no envuelve el texto para extender la altura de la celda. ¿Hay alguna manera de cambiar esto en el script para que la celda sea más alta y no más ancha?
Este es un ejemplo de mi script actual:
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} )
)
);

Probé Establecer altura, Establecer ancho y Establecer tamaño mínimo/máximo, pero no encontré una manera de hacer que la celda sea más alta que una línea. Abierto a sugerencias, ¡gracias!
La personalización en masaRe: Cómo establecer la altura de la celda o el ajuste del texto en un cuadro de tabla¿Aún no es posible configurar Wrap en String Col Box?
Tengo una tabla que consta de 2 columnas (String Col Box) y 24 filas. Necesitaría ajustar el texto en 3 de 48 celdas para que la tabla quepa en una página del pdf (como resultado de guardar un diario). No estoy seguro de si la solución anterior podría ayudar con mi problema...
Re: Cómo establecer la altura de la celda o el ajuste del texto en un cuadro de tabla¡Esto lo hizo! ¡Gracias por la rápida respuesta!Re: Cómo establecer la altura de la celda o el ajuste del texto en un cuadro de tablaVaya... leí la tabla de datos, no el cuadro de tabla... mi error
Re: Cómo establecer la altura de la celda o el ajuste del texto en un cuadro de tablaString Col Box no admite varias líneas dentro de una sola fila. Sin embargo, puede usar un cuadro de columna y agregar cuadros de texto para cada fila para las columnas que deben abarcar varias filas.
Aquí hay una versión actualizada de su ejemplo. Tenga en cuenta que la única forma de agregar cuadros de visualización a un Col Box es mediante Agregar. Esperamos agregar más flexibilidad a esto en una versión futura de 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>Aquí está la ventana resultante:</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: Cómo establecer la altura de la celda o el ajuste del texto en un cuadro de tablaAquí está el ejemplo del índice de secuencias de comandos.
Ayuda==>Índice de secuencias de comandos==>Tabla de datos==>Establecer altura de celda
Names Default To Here( 1 );
dt = Open( "$SAMPLE_DATA/Big Class.jmp" );
dt << Set Cell Height( 20 );