Skip to Main Content Skip to Search
Login
File Exchange
MATLAB Newsgroup
Link Exchange
  Blogs  
 Contest 
MathWorks.com

Thread Subject: fontsize of inputdlg box?

Subject: fontsize of inputdlg box?

From: jay vaughan

Date: 07 May, 2008 22:51:04

Message: 1 of 3

Hi,

Anyone know how to change the fontsize of an inputdlg box?

answer = inputdlg('default font too small for my old eyes!');

Reading the help file, I saw there is the possibility of
entering some options, such as options.WindowStyle='normal',
but couldn't find one for fontsize.

Thanks,
J









Subject: Re: fontsize of inputdlg box?

From: Doug Schwarz

Date: 07 May, 2008 23:44:13

Message: 2 of 3

In article <fvtbon$3vh$1@fred.mathworks.com>,
 "jay vaughan" <jvaughan5.nospam@gmail.com> wrote:

> Hi,
>
> Anyone know how to change the fontsize of an inputdlg box?
>
> answer = inputdlg('default font too small for my old eyes!');
>
> Reading the help file, I saw there is the possibility of
> entering some options, such as options.WindowStyle='normal',
> but couldn't find one for fontsize.
>
> Thanks,
> J

If you look in the m-file, you'll see a line like this:

TextInfo.FontSize = get(0,'FactoryUIControlFontSize');

which means that the font size is set to the factory default for
uicontrols. You can't change that, but you can chance that line in the
m-file:

TextInfo.FontSize = 14;

I'm not sure if MATLAB will see that change unless you clear the toolbox
cache. Try "clear inputdlg" or "clear functions".

--
Doug Schwarz
dmschwarz&ieee,org
Make obvious changes to get real email address.

Subject: Re: fontsize of inputdlg box?

From: jay vaughan

Date: 08 May, 2008 04:34:03

Message: 3 of 3

Doug,

thanks for the reply. That is helpful!


J

Doug Schwarz <see@sig.for.address.edu> wrote in message
<see-52778E.19443807052008@71-129-133-66.dollamir.com>...
> In article <fvtbon$3vh$1@fred.mathworks.com>,
> "jay vaughan" <jvaughan5.nospam@gmail.com> wrote:
>
> > Hi,
> >
> > Anyone know how to change the fontsize of an inputdlg box?
> >
> > answer = inputdlg('default font too small for my old
eyes!');
> >
> > Reading the help file, I saw there is the possibility of
> > entering some options, such as options.WindowStyle='normal',
> > but couldn't find one for fontsize.
> >
> > Thanks,
> > J
>
> If you look in the m-file, you'll see a line like this:
>
> TextInfo.FontSize =
get(0,'FactoryUIControlFontSize');
>
> which means that the font size is set to the factory
default for
> uicontrols. You can't change that, but you can chance
that line in the
> m-file:
>
> TextInfo.FontSize = 14;
>
> I'm not sure if MATLAB will see that change unless you
clear the toolbox
> cache. Try "clear inputdlg" or "clear functions".
>
> --
> Doug Schwarz
> dmschwarz&ieee,org
> Make obvious changes to get real email address.

Tags for this Thread

Add a New Tag:

Separated by commas
Ex.: root locus, bode

What are tags?

A tag is like a keyword or category label associated with each thread. Tags make it easier for you to find threads of interest.

Anyone can tag a thread. Tags are public and visible to everyone.

rssFeed for this Thread

envelope graphic E-mail this page to a colleague

Public Submission Policy
NOTICE: Any content you submit to MATLAB Central, including personal information, is not subject to the protections which may be afforded information collected under other sections of The MathWorks, Inc. Web site. You are entirely responsible for all content that you upload, post, e-mail, transmit or otherwise make available via MATLAB Central. The MathWorks does not control the content posted by visitors to MATLAB Central and, does not guarantee the accuracy, integrity, or quality of such content. Under no circumstances will The MathWorks be liable in any way for any content not authored by The MathWorks, or any loss or damage of any kind incurred as a result of the use of any content posted, e-mailed, transmitted or otherwise made available via MATLAB Central. Read the complete Disclaimer prior to use.
Related Topics