Effacer les filtres
Effacer les filtres

How to bold dialog box?

11 vues (au cours des 30 derniers jours)
John Doe
John Doe le 28 Mai 2020
Réponse apportée : Tommy le 28 Mai 2020
Hi everyone.
Is there any way that I can boldface the writings in a dialog box?
Thanks in advance.

Réponse acceptée

Tommy
Tommy le 28 Mai 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);

Plus de réponses (0)

Catégories

En savoir plus sur Graphics Object Programming dans Help Center et File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by