Come impostare l'altezza della cella o la disposizione del testo in una casella della tabellaSto cercando di visualizzare alcune informazioni in una casella tabella in una finestra di visualizzazione. Il testo in una cella è così lungo da estendere la larghezza della colonna ma non avvolgere il testo per estendere l'altezza della cella. C'è un modo per cambiarlo nello script in modo che la cella sia più alta e non più larga?
Questo è un esempio del mio script attuale:
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} )
)
);

Ho provato Imposta altezza, Imposta larghezza e Imposta dimensione minima/massima, ma non ho trovato un modo per ottenere la cella più alta di una linea. Aperto a suggerimenti, grazie!
SceneggiaturaRe: Come impostare l'altezza della cella o la disposizione del testo in una casella della tabellaNon è ancora possibile impostare Wrap su Stringa Col Box?
Ho una tabella composta da 2 colonne (String Col Box) e 24 righe di cui avrei bisogno per racchiudere il testo in 3 celle su 48 per adattare la tabella a una pagina del pdf (risultante dal salvataggio di un diario). Non sono sicuro che la soluzione di cui sopra possa aiutare con il mio problema...
Re: Come impostare l'altezza della cella o la disposizione del testo in una casella della tabellaQuesto l'ha fatto! Grazie per la rapida risposta!Re: Come impostare l'altezza della cella o la disposizione del testo in una casella della tabellaOops.....ho letto la tabella dei dati, non la casella della tabella.....il mio errore
Re: Come impostare l'altezza della cella o la disposizione del testo in una casella della tabellaString Col Box non supporta più righe all'interno di una singola riga. Tuttavia, puoi utilizzare una casella Col Box e aggiungere caselle di testo per ogni riga per le colonne che devono estendersi su più righe.
Ecco una versione aggiornata del tuo esempio. Si noti che l'unico modo per aggiungere caselle di visualizzazione a una casella Col è utilizzare Aggiungi. Ci aspettiamo di aggiungere maggiore flessibilità a questo in una versione futura di 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>
Ecco la finestra risultante:

Re: Come impostare l'altezza della cella o la disposizione del testo in una casella della tabellaEcco l'esempio dello Scripting Index
Aiuto==>Indice script==>Tabella dati==>Imposta altezza cella
Names Default To Here( 1 );
dt = Open( "$SAMPLE_DATA/Big Class.jmp" );
dt << Set Cell Height( 20 );