我正在嘗試在 DXL 中制作一個程式,詢問用戶一些資料。出于這個原因,我想通過對話框向用戶顯示說明。如何在對話框中添加粗體字串?(我是這種語言的新手)。
謝謝
uj5u.com熱心網友回復:
這取決于您需要粗體文本的位置。據我所知,例如不可能將欄位的標簽設定為粗體,但您也許可以在對話框中創建一個型別為richField (or ) 的 DBE 并用富文本填充它,例如richText
void doSomething (DBE x) {ack "boo!"}
DB dialog = create("hi there")
richField (dialog, "", "Remember to {\\b save your module} before calling this function", 60, true)
button (dialog, "Do something", doSomething)
show dialog
對于更復雜的文本,您可能需要查看繪圖文本DBE canvas
轉載請註明出處,本文鏈接:https://www.uj5u.com/yidong/465490.html
