Re : Comment définir la hauteur des cellules ou l'habillage du texte dans une zone de tableauN'est-il toujours pas possible de régler Wrap sur le String Col Box ?
J'ai un tableau composé de 2 colonnes (String Col Box) et de 24 lignes dont j'aurais besoin pour envelopper le texte dans 3 cellules sur 48 pour que le tableau tienne sur une page du pdf (résultant de l'enregistrement d'un journal). Je ne sais pas si la solution ci-dessus pourrait aider à résoudre mon problème...
Re : Comment définir la hauteur des cellules ou l'habillage du texte dans une zone de tableauCela l'a fait! Merci pour la réponse rapide!Re : Comment définir la hauteur des cellules ou l'habillage du texte dans une zone de tableauOups.....j'ai lu Data Table, pas Table Box.....mon erreur
Re : Comment définir la hauteur des cellules ou l'habillage du texte dans une zone de tableauString Col Box ne prend pas en charge plusieurs lignes dans une seule ligne. Cependant, vous pouvez utiliser une Col Box et ajouter des zones de texte pour chaque ligne pour les colonnes qui doivent s'étendre sur plusieurs lignes.
Voici une version mise à jour de votre exemple. Notez que la seule façon d'ajouter des boîtes d'affichage à une Col Box est d'utiliser Append. Nous prévoyons d'ajouter plus de flexibilité à cela dans une future version 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>
Voici la fenêtre résultante :

Re : Comment définir la hauteur des cellules ou l'habillage du texte dans une zone de tableauVoici l'exemple du Scripting Index
Aide==>Index de script==>Table de données==>Définir la hauteur de la cellule
Names Default To Here( 1 );
dt = Open( "$SAMPLE_DATA/Big Class.jmp" );
dt << Set Cell Height( 20 );
Comment définir la hauteur des cellules ou l'habillage du texte dans une zone de tableauJ'essaie d'afficher des informations dans une zone de table dans une fenêtre d'affichage. Le texte d'une cellule est si long qu'il étend la largeur de la colonne mais n'enveloppe pas le texte pour étendre la hauteur de la cellule. Existe-t-il un moyen de modifier cela dans le script afin que la cellule soit plus haute et non plus large ?
Voici un exemple de mon script actuel :
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} )
)
);

J'ai essayé Définir la hauteur, Définir la largeur et Définir la taille min/max, mais je n'ai pas trouvé de moyen de faire en sorte que la cellule dépasse une ligne. Ouvert aux suggestions, merci !
Personnalisation de masse