Quote
In article <3a670923$1_1@dnews>, Tom birch wrote:
> One has PPI of 96 on the NT 4.0
> and PPI of 120 on the WIN 2000. Will read up on PixelsPerInch.
Ah, the old logical resolution problem. Maybe you can gain something from the
following sermon. There are also several sizer/scaler components around that
purport to take of the problem automatically. I have no personal experience with
any of them, though.
<quote>
On form scaling and the large fonts/small fonts issue
This is usually a problem of large fonts (120 dpi) vs small fonts (96 dpi)
settings. The user can change these settings as part of the display options in
control panel. You can check the settings at run-time by looking at
Screen.PixelsPerInch.
Different ways have been suggested to create forms that will work well on both
settings. The most important one is to use TrueType fonts (like Arial) only in
your forms. Ms SansSerif, the default, is TT on NT but not on Win9x!
Option 1: Design on small fonts, leave the forms Scaled propery set to true, set
forms AutoScroll to false, leave a little extra space between controls so they
can grow a bit under large fonts without colliding with each other. This is said
to be the method Borland uses for the Delphi IDE itself. When you test on large
fonts *never* save the project there! If you save such a form under large fonts
it will become distorted under small fonts!
Option 2: Design on large fonts and set Scaled to false. This is my favourite
since large fonts is my default setting (i am myopic). Again take care never to
save the project under small fonts or the forms will become distorted.
A final issue you may need to take care of is the users screen size (in pixels).
If you design your forms to run well on 800*600 the user will have a problem if
he is running 640*480. So your forms should check the screen size (Screen.Width,
Screen.Height) in their OnCreate handler. If the screen is too small for the form
the form shoulds resize itself to the screen size (or better the workarea size,
see SystemParametersInfo( SPI_GETWORKAREA) and set its AutoScroll property to
true. It will then automatically sprout scrollbars, so the user can at least
access all parts of the form. Trying to rescale the form to the smaller screen
size will almost never result in a usable form, so I don't consider this an
option.
</quote>
Peter Below (TeamB) 100113.1...@compuserve.com)
No e-mail responses, please, unless explicitly requested!
Note: Till Feb.2001 i will only visit the groups on weekends, so be patient if i
don't reply immediately.