Board index » delphi » Screen Resolution - Large font vs Small Font problem

Screen Resolution - Large font vs Small Font problem

I have a problem with designing a project using a resolution with 'small fonts'  and then running
this project with a resolution having 'large fonts'. The images and panels in my project have
different heights and widths from when they were designed. I have the same problem if I design with
a screen resolution having 'large fonts' and then run the project on a 'small fonted'  resolution.
I could set the positions and sizes are run-time but I feel I shoundn't have to. Can anyone help?

--
Billy Nice

====================================================================
E-Mail: bi...@sysgenics.co.uk        SysGenics Limited  
Telephone: +44 0181 296 9091         Central House, 1 Alwyne Road
Fax: +44 0181 296 9160               Wimbledon, London, SW19 7AB, UK
====================================================================

 

Re:Screen Resolution - Large font vs Small Font problem


In message <318A0FCF.3...@sysgenics.co.uk> - Billy Nice <bi...@sysgenics.co.uk>

Quote
 writes:

> I have a problem with designing a project using a resolution with 'small fonts'  and then running
> this project with a resolution having 'large fonts'. The images and panels in my project have
> different heights and widths from when they were designed. I have the same problem if I design with
> a screen resolution having 'large fonts' and then run the project on a 'small fonted'  resolution.
> I could set the positions and sizes are run-time but I feel I shoundn't have to. Can anyone help?

> --
> Billy Nice

Have you tried setting your forms' Scaled property to false? If this
still isn't enough, I get reliable window and dialog sizings by
manually setting the form's height to the desired canvas height plus
the difference between current form height and current canvas height, which
then accounts for different title bar heights according to screen resolution.

Hope this helps,

Rob

-----------------------------------------------------------------------
 _  _     Rob Schroeder
|_)(_     Internet Robert.Schroe...@koblenz.netsurf.de, CIS 101633,2076
| \ _) -> Homepage http://ourworld.compuserve.com/homepages/rschroeder
-----------------------------------------------------------------------

Re:Screen Resolution - Large font vs Small Font problem


Quote
Billy Nice <bi...@sysgenics.co.uk> writes:
>I have a problem with designing a project using a resolution with 'small fonts'  and then running
>this project with a resolution having 'large fonts'. The images and panels in my project have
>different heights and widths from when they were designed. I have the same problem if I design with
>a screen resolution having 'large fonts' and then run the project on a 'small fonted'  resolution.
>I could set the positions and sizes are run-time but I feel I shoundn't have to. Can anyone help?
>--
>Billy Nice
>====================================================================
>E-Mail: bi...@sysgenics.co.uk        SysGenics Limited  
>Telephone: +44 0181 296 9091         Central House, 1 Alwyne Road
>Fax: +44 0181 296 9160               Wimbledon, London, SW19 7AB, UK
>====================================================================

Have a look at what the Dialog Windows are like in some of the Mega Apps
(eg Delphi) ..... use a system font ,,,, use Scaled ...... this works OK
for me .... and design the form at 640x480.
--DC

--
   .////.   .//       Doug Colman - Dept of Maths, Stats           .////.   .//
 o:::::::::///    and Computer Science, Uni. of New England,     o:::::::::///

Quote
>::::::::::\\\   Armidale NSW Australia - Ph 067 714408(Aust)   >::::::::::\\\

   '\\\\\'   \\           d...@neumann.une.edu.au                  '\\\\\'   \\

Re:Screen Resolution - Large font vs Small Font problem


Quote
Billy Nice wrote:

> I have a problem with designing a project using a resolution with 'small fonts'  and then running
> this project with a resolution having 'large fonts'. The images and panels in my project have
> different heights and widths from when they were designed. I have the same problem if I design with
> a screen resolution having 'large fonts' and then run the project on a 'small fonted'  resolution.
> I could set the positions and sizes are run-time but I feel I shoundn't have to. Can anyone help?

I struggled with the same problem until I discovered that if you
use non-trutype fonts, the fonts scale a lot better. You still
have the problem with the size of the controls (especially the
DBGrid). One solution is to set the at run time, but it is a
pain and defeats the purpose of visual designing. The solution  
I use is to design wwith small fonts and space the controls
enough so they will not overlap each other with large fonts.

--
Gabriel Beccar-Varela
E-Mail gabr...@emf.net

Re:Screen Resolution - Large font vs Small Font problem


On Sun, 05 May 1996 18:15:09 -0700, Gabriel Beccar-Varela

Quote
<gabr...@emf.net> wrote:
>Billy Nice wrote:

>> I have a problem with designing a project using a resolution with 'small fonts'  and then running
>> this project with a resolution having 'large fonts'. The images and panels in my project have
>> different heights and widths from when they were designed. I have the same problem if I design with
>> a screen resolution having 'large fonts' and then run the project on a 'small fonted'  resolution.
>> I could set the positions and sizes are run-time but I feel I shoundn't have to. Can anyone help?

>I struggled with the same problem until I discovered that if you
>use non-trutype fonts, the fonts scale a lot better. You still
>have the problem with the size of the controls (especially the
>DBGrid). One solution is to set the at run time, but it is a
>pain and defeats the purpose of visual designing. The solution  
>I use is to design wwith small fonts and space the controls
>enough so they will not overlap each other with large fonts.

The best solution for the Large vs. Small font is to set the font
PITCH to fpVariable.  This will eliminate the need to adjust the size
of anything (unless scaling the form from 1024x768 to 640x480, or the
like).

Brien King
bk...@primenet.com

Re:Screen Resolution - Large font vs Small Font problem


Quote
Robert Schroeder (Robert.Schroe...@koblenz.netsurf.de) wrote:

: In message <318A0FCF.3...@sysgenics.co.uk> - Billy Nice <bi...@sysgenics.co.uk>
Quote
:  writes:

: >
: > I have a problem with designing a project using a resolution with 'small fonts'  and then running
: > this project with a resolution having 'large fonts'. The images and panels in my project have
: > different heights and widths from when they were designed. I have the same problem if I design with
: > a screen resolution having 'large fonts' and then run the project on a 'small fonted'  resolution.
: > I could set the positions and sizes are run-time but I feel I shoundn't have to. Can anyone help?
: >
: > --
: > Billy Nice

: Have you tried setting your forms' Scaled property to false? If this
: still isn't enough, I get reliable window and dialog sizings by
: manually setting the form's height to the desired canvas height plus
: the difference between current form height and current canvas height, which
: then accounts for different title bar heights according to screen resolution.

: Hope this helps,

: Rob

: -----------------------------------------------------------------------
:  _  _     Rob Schroeder
: |_)(_     Internet Robert.Schroe...@koblenz.netsurf.de, CIS 101633,2076
: | \ _) -> Homepage http://ourworld.compuserve.com/homepages/rschroeder
: -----------------------------------------------------------------------

You also should include the screen.PixelsPerInch variable
for small fonts this it's 96 DPI for large Fonts 120 DPI (= 125% scaled font in Windows 95)

/Nils
--
______________________________________________________________________________
     _/    _/  _/    _/  _/_/_/
    _/_/  _/  _/    _/  _/    _/     NHD-Softwaresysteme
   _/  _/_/  _/_/_/_/  _/    _/      Dipl.-Inform. Nils H. Dzubiel
  -/    _/  _/    _/  _/    _/       An der Rossmuehle 15
 _/    _/  _/    _/  _/_/_/          47835 Krefeld - Huels, Germany

                 "What do >you< care, what other people think ?"              

Other Threads