Could you call msgbox with an empty string and then create a static textbox on it with your desired string and fontsize?
It should be a fairly straightforward wrapper for msgbox.
open msgbox.
%Go to line 249 (R2009b);
%Change to whatever value you want and it works. Obviously a bad idea to edit the stock function though.
I wonder if it can be modified somewhere in this "Factory" so I'm not
modifying MATLAB code? Is it some kind of Java setting on my system
that can be set independently of MATLAB? (Sounds like a question for
Yair !)
By the way my displayed font is (2 mm / 25.5 mm per inch) * 72 points
per inch = 5.67 points. Pretty tiny!
ImageAnalyst
While 'FactoryXXX' properties cannot be changed, they all have corresponding 'DefaultXXX' properties that can be modified. For example:
set(0,'DefaultUIControlFontSize',12);
Unfortunately, some internal Matlab functions (tabdlg, inputdlg and msgbox) use 'FactoryXXX' rather than 'DefaultXXX' for some properties. If you ask me, it's a programming oversight by MathWorks. I suggest to go ahead and modify the two offending lines to use 'DefaultXXX' and then set the requested default value in your startup.m file.
Yair Altman
http://UndocumentedMatlab.com