Error message. Increase font size.

7 Ansichten (letzte 30 Tage)
Alexander Voznesensky
Alexander Voznesensky am 3 Feb. 2017
Kommentiert: Guillaume am 21 Feb. 2017
Hi! Is there any possibility to increase font size in errordlg?

Akzeptierte Antwort

Guillaume
Guillaume am 3 Feb. 2017
Bearbeitet: Guillaume am 3 Feb. 2017
h = errordlg('Error! Error!');
htext = findobj(h, 'Type', 'Text'); %find text control in dialog
htext.FontSize = 15; %set fontsize to whatever you want
  4 Kommentare
Alexander Voznesensky
Alexander Voznesensky am 21 Feb. 2017
Hi again! Sorry, what about questdlg? It doesn't return a handle, it returns an answer.
choice = questdlg('Do you hear?','Channel2','Yes','No', 'Yes');
What I should do in this case to increase the font?
Guillaume
Guillaume am 21 Feb. 2017
You cannot modify the font size (or any other property for that matter) of a questdlg. You would have to create your own dialog from scratch, I'm afraid.
Or copy questdlg.m in your own folder, rename the file and modify the code to add an optional font size argument.

Melden Sie sich an, um zu kommentieren.

Weitere Antworten (0)

Kategorien

Mehr zu Interactive Control and Callbacks finden Sie in Help Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by