Groups > Borland > Delphi winforms controls > WideScreen forms




WideScreen forms

WideScreen forms
Thu, 29 Jun 2006 22:24:16 +020
Hi

BDS2006 UPD2
WinXP Pro

I really need an advice.
In my IDE, I develop on a PC which have a "normal" screen (format
3x4)
When my application runs on other machines with higher/lower resolution, I 
can scale up and down (but I also have some difficulties there)

But how can I force my application, running on a machine with wide screen 
(format 9x16) not to fill up the entire screen, causing the all 
texts/drawings etc to be "wrong" (stretched horizontally)?
I generally want to fill up my screen - except on wide screens where I want 
to force the application just to fill up the "middle" part of the
screen 
(meaning 2 unused areas left and right of the application).
Also as mentioned, I have some troubles with formatting the application with 
other resolusions than is on my developer machine:

I do as follows:

On my machines, there are 1152 pixels horizontally
Upon startup, I read "Screen.width" in order to read the actual
machine on 
which is running.
In the "OnCreate" event on each form, I execute 
"ScaleBy(Screen.Width,1152)", in order to rearrange the form and all
the 
controls so it's nice to look at.
But I don't feel that all the fonts, and also the DBGrid follows it

Any hint?

Anders 

Post Reply
about | contact