Markup und Set Wrap im selben TextfeldIch verwende JMPPro 14.3. Ich habe das Gleiche in JMP12 und (glaube ich) auch in JMP11 versucht. Kann mir bitte jemand zeigen, wie man gleichzeitig Markup (fett, unterstrichen usw.) verwendet und Umbruch im selben Textfeld setzt? Versuchen Sie, das folgende Skript auszuführen, und ich denke, Sie werden verstehen, wovon ich spreche.
nw = Neues Fenster("Beispiel für Markup im Textfeld",
Textfeld("Dies ist fett gedruckt, wird aber umständlich umbrochen", << Markup),
Textfeld(""), // um zu verhindern, dass sich das obere Textfeld auf das darunterliegende Textfeld stapelt
Text Box("Dies ist nicht fett, wird aber korrekt umbrochen", << Set Wrap(300)),
Text Box("Das sieht so aus, als ob es fett gedruckt und korrekt umbrochen werden sollte, ist es aber nicht", << Set Wrap(300) << Markup),
Textfeld("Sollte auch fett gedruckt sein und korrekt umbrochen werden, ist aber nicht", << Markup << Set Wrap(300)),
tb1 = Text Box("Das Aufteilen in mehrere Befehle funktioniert auch nicht", << Markup),
tb1 << Set Wrap(300),
tb2 = Text Box("Umkehren der Reihenfolge funktioniert nicht", << Set Wrap(300)),
tb2 << Markup
);
Betreff: Markup und Set Wrap im selben Textfeld@txnelson > Vielen Dank *sehr* für Ihre Hilfe und die schnellen Antworten! Ich schätze es wirklich. Ich bin froh, dass es für 15 eine Lösung gibt.
Betreff: Markup und Set Wrap im selben TextfeldIch erhalte das gleiche Ergebnis unter JMP 14.3, es scheint jedoch in JMP 15 behoben zu sein
Betreff: Markup und Set Wrap im selben TextfeldHmm. Das scheint bei mir nicht zu funktionieren. Das folgende Skript
nw = New Window("Example of markup in text box",
Text Box("<B>This is in bold but wraps awkwardly</B>", << Markup, << Set Wrap(1200)),
Text Box("", << Set Wrap(1200)),
Text Box("<B>This is not in bold but wraps correctly</B>", << Set Wrap(1200))
);Gibt mir Folgendes

Darüber hinaus ist es irreführend, es nicht als Nachricht zu bezeichnen (dieser Teil ist eine Beschwerde, kein Problem). Intern bezeichnet JMP es als Nachricht. Wenn ich zum Beispiel etwas Unsinn wie „<< Set Milk“ in ein Textfeld eingebe, erhalte ich Folgendes im Protokoll:
Das Anzeigefeld „TextBox“ erkennt das nicht Nachricht 'Milch einstellen'; Vielleicht meinen Sie eines davon: <<<<Betreff: Markup und Set Wrap im selben Textfeld
<< Markup und <
nw = New Window("Example of markup in text box",
Text Box("<B>This is in bold but wraps awkwardly</B>", << Markup),
Text Box(""), // to prevent above text box from piling on below text box
Text Box("This is not in bold but wraps correctly", << Set Wrap(300)),
Text Box("<B>This seems like it should be in bold and wrap correctly but isn't</B>", << Set Wrap(300), << Markup),
Text Box("<B>Also should be in bold and wrap correctly but isn't</B>", << Markup ,<< Set Wrap(200)),
tb1 = Text Box("<B>Breaking it out into multiple commands doesn't work either</B>", << Markup),
tb1 << Set Wrap(300),
tb2 = Text Box("<B>Reversing order doesn't work</B>", << Set Wrap(300)),
tb2 << Markup
);