Article View: borland.public.cppbuilder.nativeapi
Article #12653Re: Running application on different OSs
From: Eugene Mayevski [SecureBlackbox]
Date: Wed, 26 Nov 2003 20:31
Date: Wed, 26 Nov 2003 20:31
23 lines
2104 bytes
2104 bytes
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:
<3fc50dc0@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!news.maxwell.syr.edu!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mailReferences:
<3fc50651$1@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 10cc67,1230371096495496 X-Google-Attributes: gid10cc67,public X-Google-ArrivalTime: 2003-11-26 12:39:57 PST Date: Wed, 26 Nov 2003 22:31:47 +0200 From: "Eugene Mayevski [SecureBlackbox]" <mayevski@eldos.org> Organization: EldoS Corporation User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.4) Gecko/20030624 X-Accept-Language: en-us, ru, en MIME-Version: 1.0 Newsgroups: borland.public.cppbuilder.nativeapi Subject: Re: Running application on different OSs References: <3fc50651$1@newsgroups.borland.com> In-Reply-To: <3fc50651$1@newsgroups.borland.com> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit NNTP-Posting-Host: 212.9.249.154 Message-ID: <3fc50dc0@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1069878720 212.9.249.154 (26 Nov 2003 12:32:00 -0700) Lines: 24 Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!news.maxwell.syr.edu!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail