Change TITLE font size of the message box.
Show older comments
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 Comments
You need to removed the spaces for the fontsize commands to work in the main body of the msgbox.
msgbox ( '\ fontsize {15} Check for font size.' , ...
% Remove ^ ^
The interpreter does not affect the title of the msgbox which is really just the figure name.
THULYO NEDER
on 28 Dec 2020
Cris LaPierre
on 28 Dec 2020
What version of MATLAB are you using?
THULYO NEDER
on 28 Dec 2020
Edited: THULYO NEDER
on 28 Dec 2020
The r2020b documentation does not state that the interpreter will be applied to the title
The title is just the figure name and the figure does not have an interpreter property.
THULYO NEDER
on 28 Dec 2020
Adam Danz
on 28 Dec 2020
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
on 28 Dec 2020
Edited: THULYO NEDER
on 28 Dec 2020
Accepted Answer
More Answers (0)
Categories
Find more on App Building in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!