🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.delphi.winforms.controls.using
Article #147

WideScreen forms

#147
From: Anders Balslev
Date: Thu, 29 Jun 2006 20:24
32 lines
2153 bytes
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 
Technical Details
Message-ID: <44a4370c$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news2.google.com!news3.google.com!news4.google.com!news.glorb.com!newsfeed0.kamp.net!newsfeed.kamp.net!newsfeed.freenet.de!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Thread: 1eff29,17dc7f45094839f2,start
X-Google-Attributes: gid1eff29,public
X-Google-Language: ENGLISH,ASCII-7-bit
From: "Anders Balslev" <itq@business.tele.dk>
Newsgroups: borland.public.delphi.winforms.controls.using
Subject: WideScreen forms
Date: Thu, 29 Jun 2006 22:24:16 +0200
Lines: 34
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2900.2527
X-MIMEOLE: Produced By Microsoft MimeOLE V6.00.2900.2527
X-RFC2646: Format=Flowed; Original
NNTP-Posting-Host: 80.160.105.84
Message-ID: <44a4370c$1@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1151612684 80.160.105.84 (29 Jun 2006 13:24:44 -0700)
Path: arc1-ca.pugleaf.net!g2news2.google.com!news3.google.com!news4.google.com!news.glorb.com!newsfeed0.kamp.net!newsfeed.kamp.net!newsfeed.freenet.de!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail