How to bold dialog box?

11 views (last 30 days)
John Doe
John Doe on 28 May 2020
Answered: Tommy on 28 May 2020
Hi everyone.
Is there any way that I can boldface the writings in a dialog box?
Thanks in advance.

Accepted Answer

Tommy
Tommy on 28 May 2020
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);

More Answers (0)

Categories

Find more on Graphics Object Programming in Help Center and File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!