在同一個文本框中進行標記和設置換行我正在運行 JMPPro 14.3。 我在 JMP12 和 JMP11 中嘗試過同樣的事情(我認為)。 有人可以告訴我如何在同一個文本框中同時使用標記(粗體、下劃線等)並設置換行嗎? 嘗試運行下面的腳本,我想您會明白我在說什麼。
nw = 新窗口("文本框中的標記示例",
Text Box("這是粗體,但換行笨拙",<<標記),
Text Box(""), // 防止上面的文本框堆積在下面的文本框上
Text Box("這不是粗體,但換行正確", << Set Wrap(300)),
Text Box("這看起來應該是粗體並正確換行,但事實並非如此", << Set Wrap(300) << Markup),
Text Box("也應該是粗體並正確換行,但不是", << Markup << Set Wrap(300)),
tb1 = Text Box("將其分解為多個命令也不起作用", << 標記),
tb1 << 設置換行(300),
tb2 = Text Box("顛倒順序不起作用", << Set Wrap(300)),
tb2 << 標記
);
回复:在同一個文本框中標記和設置換行@tx尼爾森> *非常*非常感謝您的幫助和及時回复! 對此,我真的非常感激。 我很高興 15 號修復了。
回复:在同一個文本框中標記和設置換行我在 JMP 14.3 下運行得到相同的結果,但是,它似乎在 JMP 15 中得到修復
回复:在同一個文本框中標記和設置換行唔。 這似乎對我不起作用。 下面的腳本
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))
);給了我以下內容

此外,不稱其為消息會產生誤導(這部分是投訴,而不是問題)。 在內部,JMP 將其稱為消息。 例如,如果我在文本框中輸入一些垃圾內容,例如“<< Set Milk”,我會在日誌中看到以下內容:
顯示框“TextBox”無法識別信息'設置牛奶';也許您的意思是其中之一: <<保存 HTML <<獲取 XML <<設置提示 <<設置換行... <<設置文本 <<獲取提示 <<<設置寬度等。
回复:在同一個文本框中標記和設置換行<< 標記和 <
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
);