uli*_*ses 1 dialog x++ axapta dynamics-ax-2012
我的代码在我的Dialog
:
//other code
dialog.addText(strFmt("Delete this field's value: %1?", MyTable.FieldTable));
//other code
Run Code Online (Sandbox Code Playgroud)
我的输出看起来像:
我知道这个strUpr
功能:
dialog.addText(strFmt("Delete this field's value: %1?", strUpr(MyTable.FieldTable)));
Run Code Online (Sandbox Code Playgroud)
是否存在仅将FIELDValue转换为粗体文本的方法或函数?
您可以在FormBuildStaticTextControl上将bold
属性设置为.7
可以通过control
方法DialogText
返回的addText
方法获得控制.
返回的整数包含字体的权重,如下所示:
Run Code Online (Sandbox Code Playgroud)0 Use the default font weight. 1 Thin. 2 Extra-light. 3 Light. 4 Normal. 5 Medium. 6 Semibold. 7 Bold. 8 Extra-bold. 9 Heavy.
例:
Dialog dialog = new Dialog();
DialogText dt = dialog.addText("Test");
FormBuildStaticTextControl txtCtl = dt.control();
txtCtl.bold(7);
dialog.run();
Run Code Online (Sandbox Code Playgroud)