Re: adjusting fonts to computer's dpi settings



I have tried several times to recreate that initial screen to no avail
I suspect it was something related to the small RAM memory.
Initially, I panicked because none of the captions on all controls were
readable!
All of them have increased font and all captions were wrapped!.
Only MS stuff displayed properly.
I am relieved that my app looks OK in 120 dpi.
Thanks,
Jack

"Mike Williams" <mikea@xxxxxxxxxxxxxxxxx> wrote in message
news:OvfDG8DaIHA.4712@xxxxxxxxxxxxxxxxxxxxxxx
"Jack" <replyto@it> wrote in message
news:ePO1R9CaIHA.5976@xxxxxxxxxxxxxxxxxxxxxxx

Mike, After changing to 120 dpi I have everything big, as you said it
supposed to be. But interestingly,
now my app looks much better then before. I do not
need to change font in my controls at all. All are
resized and readable correctly

Yes. That's exactly what I said in my previous response. The pixel size of
the Form's client area and all of its contained controls is increased by
exactly the same percentage (120/96), and the same goes for their positons
(Left and Top). And the fonts all remain at the same design time point
size settings, but the pixel size of the fonts also becomes larger because
as well as there being more "pixels per twip" there are also more "pixels
per point". By the way, a point is exactly 20 twips and there are exactly
72 twips in one inch. In fact the name "twip" is an acronym or
abbreviation for "one twentieth of a point". So an increase in the pixel
size of a twip (resulting from a change from 96 dpi to 120 dpi) affects
your Form and its Controls and its fonts all in the same proportion. The
only time this falls down (apart from a very slight problem with fonts
under certain specific conditions) is when the pixel size of the screen is
not large enough to accommodate the increased pixel size of the Form,
resulting in the Form failing to increase by the same percentage as
everything else. But this is not usually a problem for Forms that
aresmaller than the available screen area.

Thanks,
Jack

You're welcome.

Mike





.


Quantcast