1. Computing

Multi-Resolution Delphi Applications

By October 30, 2012

Follow me on:

Delphi VCL :: When designing forms, it is often useful to write the code so that your application (forms and all objects) looks essentially the same regardless of what the screen resolution is.

Read the full article to know what to keep in mind when scaling Delphi apps on different screen resolutions

You won't be concerned about run time resolution or the system font size (small fonts / large fonts) or resizable forms after reading this article.


October 31, 2012 at 10:07 am
(1) Brian Gooch says:

When we first started using Delphi in ’97, we made the decision that ALL screen layouts were to be based on 640 x 480 @ 96 pixels per inch.
At run-time the we use a scaling algorithm to suit the screen resolution which is displaying the app. The scaling is applied dynamically to the compiled 640×480 each time the screen is displayed.

As font re-sizing within the controls can still cause a problem, they are tested for each resolution, and any adjustments made to the original 640 x 480 layout. It even works for Delphi 1.

The most important point is sticking to the 640 x 480 layout for every form, and I do mean every form. Thus, scaling has never been a problem for us.

Leave a Comment

Line and paragraph breaks are automatic. Some HTML allowed: <a href="" title="">, <b>, <i>, <strike>

©2014 About.com. All rights reserved.