How to bold dialog box?

10 次查看(过去 30 天)
John Doe
John Doe 2020-5-28
回答: Tommy 2020-5-28
Hi everyone.
Is there any way that I can boldface the writings in a dialog box?
Thanks in advance.

采纳的回答

Tommy
Tommy 2020-5-28
You can tell msgbox, inputdlg, warndlg, errordlg, and questdlg (and maybe others?) to use a tex interpreter. They all default to no interpreter, I believe. Here is an example for msgbox:
CreateStruct.Interpreter = 'tex';
CreateStruct.WindowStyle = 'non-modal'; % you need to supply this field too. default is non-modal
msgbox('\bf This is bold', CreateStruct);

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Graphics Object Programming 的更多信息

标签

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by