Board index » delphi » Designing for different screen resolutions

Designing for different screen resolutions

Hi All,

Sorry if this is the wrong group for this post.

I am designing using a 17" monitor running at 1024 X 768. How do I
design a user interface so that all components on any form would look
the same at 640X480 or at 800X600 ?

Thanks in advance
C. Taylor

 

Re:Designing for different screen resolutions


Hi,

try this:

const
    SCR_RESOLUTION = 1024;    // this is the design time resolution

procedure TForm1.Create(Sender: TObject);
begin
    Form1.ScaleBy(SCR_RESOLUTION. Screen.Width);
end;

--

==| Alex |==

Quote
Carlos Taylor wrote in message <358fe11e.7044...@news.m.iinet.net.au>...
>I am designing using a 17" monitor running at 1024 X 768. How do I
>design a user interface so that all components on any form would look
>the same at 640X480 or at 800X600 ?

Re:Designing for different screen resolutions


Quote
>I am designing using a 17" monitor running at 1024 X 768. How do I
>design a user interface so that all components on any form would look
>the same at 640X480 or at 800X600 ?

Do all of the following and you should be OK:

1. Provide extra empty space around your labels, checkboxes etc in
case your users have "Large Fonts" specified in their display setup.

2. Set the Scaled property to each form to False.

3. Use a TrueType font (like Arial) for all forms and controls.

For points 2 & 3, it is most efficient to design a "base" form class
with these properties already set, from which you can inherit all
new forms.

HTH
--
Jeremy Collins
Kansai Business Systems

(return address not altered 'coz I get spammed *whatever* I do!)

Other Threads