필터 지우기
필터 지우기

questdlg issue about size of the font

조회 수: 13 (최근 30일)
Davide Di Luzio
Davide Di Luzio 2022년 4월 21일
댓글: Walter Roberson 2022년 4월 22일
HI.
There is a way to set fontsize of questdlg without using tex interpreter or html language?
Here is an example that currently doesn't work :
answer=questdlg('\fontsize{20} MOSTRARE RISULTATI CALCOLATI?')

답변 (1개)

Voss
Voss 2022년 4월 21일
Using tex interpreter is going to be much easier than any other way:
answer = questdlg('\fontsize{20}MOSTRARE RISULTATI CALCOLATI?','', ...
struct('Interpreter','tex','Default','Yes'));
If the dialog box was not modal you could modify properties of its contents immediately after it's created, e.g., using findall/findobj, but it is modal, so that doesn't work.
Another option would be to copy questdlg.m and modify it to do whatever you want.
  댓글 수: 2
Davide Di Luzio
Davide Di Luzio 2022년 4월 22일
HI thanks for your reply.
I already know that tex interpreter is the better way but :
using tex interpreter i have to specifie all the arguments ?
currently this doesn't work using dot notation :
optsa.Interpreter = 'tex';
optsa.WindowStyle = 'modal';
optsa.Default='Yes';
answer=questdlg('\fontsize{20} MOSTRARE RISULTATI CALCOLATI?',optsa)
Walter Roberson
Walter Roberson 2022년 4월 22일
You must pass in a title if you are going to provide options.
optsa.Interpreter = 'tex';
optsa.WindowStyle = 'modal';
optsa.Default='Yes';
answer=questdlg('\fontsize{20} MOSTRARE RISULTATI CALCOLATI?', '', optsa)

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

카테고리

Help CenterFile Exchange에서 Dialog Boxes에 대해 자세히 알아보기

제품


릴리스

R2021b

Community Treasure Hunt

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

Start Hunting!

Translated by