|
web
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
Large fonts setting (120DPI)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" <force***@hotmail.com> schrieb: Take a look at the documentation of the form's 'AutoScale' property.>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? -- M S Herfried K. Wagner M V P <URL:http://dotnet.mvps.org/> V B <URL:http://classicvb.org/petition/> 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 Show quoteHide quote "Herfried K. Wagner [MVP]" <hirf-spam-me-here@gmx.at> wrote in message news:%23YwWemjeFHA.1600@tk2msftngp13.phx.gbl... > "Alex Glass" <force***@hotmail.com> schrieb: >>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/> 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 Show quoteHide quote "Charles Law" <bl***@nowhere.com> wrote in message news:eYQbTKveFHA.3160@TK2MSFTNGP09.phx.gbl... | 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 | | | "Herfried K. Wagner [MVP]" <hirf-spam-me-here@gmx.at> wrote in message | news:%23YwWemjeFHA.1600@tk2msftngp13.phx.gbl... | > "Alex Glass" <force***@hotmail.com> schrieb: | >>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 Show quoteHide quote "Jay B. Harlow [MVP - Outlook]" <Jay_Harlow_***@msn.com> wrote in message news:uxpTvFyeFHA.2124@TK2MSFTNGP14.phx.gbl... > 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 > > > "Charles Law" <bl***@nowhere.com> wrote in message > news:eYQbTKveFHA.3160@TK2MSFTNGP09.phx.gbl... > | 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 > | > | > | "Herfried K. Wagner [MVP]" <hirf-spam-me-here@gmx.at> wrote in message > | news:%23YwWemjeFHA.1600@tk2msftngp13.phx.gbl... > | > "Alex Glass" <force***@hotmail.com> schrieb: > | >>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/> > | > | > > Charles,
| I am designing on 96 dpi, and when I run on my laptop at 120 dpi I get the Ah! There's the Rub! (maybe ;-)). I'm designing at 120 then running at 96 | problem. 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 Show quoteHide quote "Charles Law" <bl***@nowhere.com> wrote in message news:uKeCaTyeFHA.3076@TK2MSFTNGP10.phx.gbl... | 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 | | | "Jay B. Harlow [MVP - Outlook]" <Jay_Harlow_***@msn.com> wrote in message | news:uxpTvFyeFHA.2124@TK2MSFTNGP14.phx.gbl... | > 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 | > | > | > "Charles Law" <bl***@nowhere.com> wrote in message | > news:eYQbTKveFHA.3160@TK2MSFTNGP09.phx.gbl... | > | 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 | > | | > | | > | "Herfried K. Wagner [MVP]" <hirf-spam-me-here@gmx.at> wrote in message | > | news:%23YwWemjeFHA.1600@tk2msftngp13.phx.gbl... | > | > "Alex Glass" <force***@hotmail.com> schrieb: | > | >>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/> | > | | > | | > | > | | |
|||||||||||||||||||||||