Change message box font

I really dont like the aliased font of msgbox (also dlgbox, etc..) in 2014b. Is it possible to revert it to the old font? How?

Respuestas (1)

Adam Danz
Adam Danz el 10 de Ag. de 2018

1 voto

Here's how to change the font in a msgbox()
mh = msgbox('Hello world', 'Example'); % Create msgbox()
th = findall(mh, 'Type', 'Text'); % Get handle to txt
set(th, 'FontName', 'Courier'); % Change fontsize; or: th.FontName = 'Courier';

2 comentarios

THULYO NEDER
THULYO NEDER el 29 de Oct. de 2020
Is it possible change the font size of the title as well? I tried to apply the same idea of the script above for the title, but did not work. Any other sugestion?
Adam Danz
Adam Danz el 29 de Oct. de 2020
Not that I'm aware of.

Iniciar sesión para comentar.

Categorías

Más información sobre Creating, Deleting, and Querying Graphics Objects en Centro de ayuda y File Exchange.

Productos

Etiquetas

Preguntada:

el 12 de Nov. de 2014

Comentada:

el 29 de Oct. de 2020

Community Treasure Hunt

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

Start Hunting!

Translated by