Change TITLE font size of the message box.

조회 수: 8 (최근 30일)
THULYO NEDER
THULYO NEDER 2020년 12월 28일
편집: THULYO NEDER 2020년 12월 28일
Hello,
I'm trying to change the TITLE font size of the message box I created.
I wrote the following:
CreateStruct.Interpreter = 'tex' ;
CreateStruct.WindowStyle = 'modal' ;
waitfor (msgbox ( '\ fontsize {15} Check for font size.' , '\ fontsize {15} Testing ...' , 'help' , CreateStruct));
which worked perfectly for the text (message). However the same cannot be said for the title.
I'm wondering why it is not applicable for the title, once the structure is exactly the same and the MATLAB documentation says that if the interpreter value is 'tex', MATLAB interprets the message and title values ​​as tex.
Any suggestions on how to solve this, would be appreciate.
Thanks in advance.
  댓글 수: 8
Adam Danz
Adam Danz 2020년 12월 28일
I see where the 2018b documentation mentions that but I'm fairly certain it was a mistake that has since been corrected. I remember creating a function to control the fontsize of msgbox back in 2018 and could not make it apply to the title text (aka, figure name).
THULYO NEDER
THULYO NEDER 2020년 12월 28일
편집: THULYO NEDER 2020년 12월 28일
Ok, Adam.
You must be right about this issue. Maybe this is a mistake in the documentation, once it is not applicable for the title.
Anyway, thank you very much for your attention and clarification.

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

채택된 답변

Cris LaPierre
Cris LaPierre 2020년 12월 28일
I'm pretty sure you cannot format the text in the title bar. The formatting here is set by the operating system. You can set the text, but not the properties (i.e. font style, color, size, type, etc).
  댓글 수: 1
THULYO NEDER
THULYO NEDER 2020년 12월 28일
편집: THULYO NEDER 2020년 12월 28일
Ok, Cris.
Anyway, thanks for your attention and clarification.

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

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Environment and Settings에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by