๐Ÿš€ go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.cppbuilder.nativeapi
Article #12654

Re: Running application on different OSs

#12654
From: gchang
Date: Wed, 26 Nov 2003 21:15
30 lines
2437 bytes

Thank you Eugene for your reply. I did what you suggested and it still doesn๏ฟฝt work. I notice something that is very interesting. When Builder loads my project in Win2k system, the width/height and ClientWidth/ClientHeight is one set of numbers. When the Builder loads the SAME project in XP, the width/height and ClientWidth/ClientHeight are different then the numbers in Win2k system. Is this because Builder 5 is not quite compatible with XP?


"Eugene Mayevski [SecureBlackbox]" <mayevski@eldos.org> wrote:
>gchang wrote:
>
>> I am writing C++ builder applications on my desktop which is running
>> Windows 2000. The forms of some of my applications displayed fine on
>> my desktop, but not on the PCs running other operating systems,
>> especially on the Windows XP. The form will be too small and I have
>> to use the scroll bars to see the whole form.  I have made sure that
>> the screen resolutions are same on all PCs, but the problems still
>> exist. Did I forget to set some form properties? I am using C++
>> Builder version 5. Thanks!
>
>The source of your problem is in the fact, that when VCL form is loaded, 
>it's Width and Height properties are read and used instead of 
>ClientWidth/ClientHeight. If the caption size on target computer is 
>larger, than the one on yours, you will get what you get. The solution 
>is to hardcode the values of ClientWidth/ClientHeight and set them in 
>code when your form is shown.
>
>-- 
>Eugene Mayevski
>EldoS Corp., CTO
>Security and networking solutions
>http://www.eldos.com
>
Technical Details
Message-ID: <3fc52611$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!news.maxwell.syr.edu!eusc.inter.net!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail
References: <3fc50651$1@newsgroups.borland.com> <3fc50dc0@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII
X-Google-Thread: 10cc67,1230371096495496
X-Google-Attributes: gid10cc67,public
X-Google-ArrivalTime: 2003-11-26 14:39:51 PST
From: "gchang" <gchang@ata-sd.com>
Sender: "gchang" <gchang@ata-sd.com>
Reply-To: "gchang" <gchang@ata-sd.com>
Subject: Re: Running application on different OSs
Newsgroups: borland.public.cppbuilder.nativeapi
X-User-Info: 63.202.158.131     
References: <3fc50651$1@newsgroups.borland.com> <3fc50dc0@newsgroups.borland.com>
NNTP-Posting-Host: 207.105.83.66
Message-ID: <3fc52611$1@newsgroups.borland.com>
Date: 26 Nov 2003 14:15:45 -0700
X-Trace: newsgroups.borland.com 1069884945 207.105.83.66 (26 Nov 2003 14:15:45 -0700)
Lines: 31
Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!news.maxwell.syr.edu!eusc.inter.net!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail