Large fonts setting (120DPI)

  • Thread starter Thread starter Alex Glass
  • Start date Start date
A

Alex Glass

I have created a winforms application and I designed it with the normal
display settings, (96DPI) however, when I set the font settings to 120 DPI,
my application text labels look all messed up. Does anyone know a
work-around for this problem?

Thanks for any advice,
Alex
 
Alex Glass said:
I have created a winforms application and I designed it with the normal
display settings, (96DPI) however, when I set the font settings to 120 DPI,
my application text labels look all messed up. Does anyone know a
work-around for this problem?

Take a look at the documentation of the form's 'AutoScale' property.
 
Hi Herfried

If my experience is anything to go by, I think the OP will be sadly
disappointed by the AutoScale property. It just does not do what it says on
the tin.

For example, labels get truncated and controls become scrunched up. I have
not found a way to make this work, and I have spent a lot of time trying.

Charles
 
Charles,
Just out of curiosity: are you designing using Large Fonts or Small Fonts?

I have a couple of Windows Forms apps that I've designed on a monitor
running 1600 by 1200 with 120 DPI setting. That when run on lower
resolutions with 96 DPI look fine.

Are you dynamically adding controls, or is every thing done at design time.

Have you tried .NET 2.0 yet? It has improved support for AutoScale.

http://msdn2.microsoft.com/library/ey6t55zx(en-us,vs.80).aspx
http://msdn2.microsoft.com/library/h3kyk1we(en-us,vs.80).aspx
http://msdn2.microsoft.com/library/fw0ta176(en-us,vs.80).aspx

I have not done a lot with the above properties yet.


I'm curious more to know about any "gotchas" I should be aware of in my
stuff.

Hope this helps
Jay


| Hi Herfried
|
| If my experience is anything to go by, I think the OP will be sadly
| disappointed by the AutoScale property. It just does not do what it says
on
| the tin.
|
| For example, labels get truncated and controls become scrunched up. I have
| not found a way to make this work, and I have spent a lot of time trying.
|
| Charles
|
|
| | >>I have created a winforms application and I designed it with the normal
| >>display settings, (96DPI) however, when I set the font settings to 120
| >>DPI, my application text labels look all messed up. Does anyone know a
| >>work-around for this problem?
| >
| > Take a look at the documentation of the form's 'AutoScale' property.
| >
| > --
| > M S Herfried K. Wagner
| > M V P <URL:http://dotnet.mvps.org/>
| > V B <URL:http://classicvb.org/petition/>
|
|
 
Hi Jay

I am designing on 96 dpi, and when I run on my laptop at 120 dpi I get the
problem.

I am dynamically adding controls, but I got the same problem when using
controls added at design time. What I found was that if I just ran the app
on the laptop things went skewie, but if I opened the form in the designer
on the laptop and then ran it was ok. This suggested to me that the designer
detects the change in resolution and changes the positions and sizes of
controls at design time. This, of course, didn't help me at runtime.

As it happens, my remit is not to design for large fonts, so I gave up
trying to make it work. It just remains a problem for me on my laptop.

I haven't tried .NET 2.0 yet. I don't really have the time at present, and I
wouldn't be allowed to deploy anything built with it by my clients anyway,
so I will start the minute it is released properly (in November, I
understand).

Charles
 
Charles,
| I am designing on 96 dpi, and when I run on my laptop at 120 dpi I get the
| problem.
Ah! There's the Rub! (maybe ;-)). I'm designing at 120 then running at 96
dpi. I wonder why going the other direction is a problem. Or maybe its, I
wonder why I'm not having a problem... Or possible, I wonder why I'm not
seeing that I have a problem ;-)

I know on one of my controls I needed to override Control.ScaleCore as I
have custom Size & Point properties that needed to be scaled from the design
dimensions to the runtime dimensions...

Hope this helps
Jay

| Hi Jay
|
| I am designing on 96 dpi, and when I run on my laptop at 120 dpi I get the
| problem.
|
| I am dynamically adding controls, but I got the same problem when using
| controls added at design time. What I found was that if I just ran the app
| on the laptop things went skewie, but if I opened the form in the designer
| on the laptop and then ran it was ok. This suggested to me that the
designer
| detects the change in resolution and changes the positions and sizes of
| controls at design time. This, of course, didn't help me at runtime.
|
| As it happens, my remit is not to design for large fonts, so I gave up
| trying to make it work. It just remains a problem for me on my laptop.
|
| I haven't tried .NET 2.0 yet. I don't really have the time at present, and
I
| wouldn't be allowed to deploy anything built with it by my clients anyway,
| so I will start the minute it is released properly (in November, I
| understand).
|
| Charles
|
|
| | > Charles,
| > Just out of curiosity: are you designing using Large Fonts or Small
Fonts?
| >
| > I have a couple of Windows Forms apps that I've designed on a monitor
| > running 1600 by 1200 with 120 DPI setting. That when run on lower
| > resolutions with 96 DPI look fine.
| >
| > Are you dynamically adding controls, or is every thing done at design
| > time.
| >
| > Have you tried .NET 2.0 yet? It has improved support for AutoScale.
| >
| > http://msdn2.microsoft.com/library/ey6t55zx(en-us,vs.80).aspx
| > http://msdn2.microsoft.com/library/h3kyk1we(en-us,vs.80).aspx
| > http://msdn2.microsoft.com/library/fw0ta176(en-us,vs.80).aspx
| >
| > I have not done a lot with the above properties yet.
| >
| >
| > I'm curious more to know about any "gotchas" I should be aware of in my
| > stuff.
| >
| > Hope this helps
| > Jay
| >
| >
| > | > | Hi Herfried
| > |
| > | If my experience is anything to go by, I think the OP will be sadly
| > | disappointed by the AutoScale property. It just does not do what it
says
| > on
| > | the tin.
| > |
| > | For example, labels get truncated and controls become scrunched up. I
| > have
| > | not found a way to make this work, and I have spent a lot of time
| > trying.
| > |
| > | Charles
| > |
| > |
| > | | > | >>I have created a winforms application and I designed it with the
| > normal
| > | >>display settings, (96DPI) however, when I set the font settings to
120
| > | >>DPI, my application text labels look all messed up. Does anyone
know
| > a
| > | >>work-around for this problem?
| > | >
| > | > Take a look at the documentation of the form's 'AutoScale' property.
| > | >
| > | > --
| > | > M S Herfried K. Wagner
| > | > M V P <URL:http://dotnet.mvps.org/>
| > | > V B <URL:http://classicvb.org/petition/>
| > |
| > |
| >
| >
|
|
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top