Error message. Increase font size.

조회 수: 4 (최근 30일)
Alexander Voznesensky
Alexander Voznesensky 2017년 2월 3일
댓글: Guillaume 2017년 2월 21일
Hi! Is there any possibility to increase font size in errordlg?

채택된 답변

Guillaume
Guillaume 2017년 2월 3일
편집: Guillaume 2017년 2월 3일
h = errordlg('Error! Error!');
htext = findobj(h, 'Type', 'Text'); %find text control in dialog
htext.FontSize = 15; %set fontsize to whatever you want
  댓글 수: 4
Alexander Voznesensky
Alexander Voznesensky 2017년 2월 21일
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 2017년 2월 21일
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.

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Interactive Control and Callbacks에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by