Article View: borland.public.cppbuilder.nativeapi
Article #13046Re: Want to change position of standard dialogs
From: Rodolfo Frino
Date: Fri, 31 Oct 2003 14:44
Date: Fri, 31 Oct 2003 14:44
40 lines
2831 bytes
2831 bytes
> My screen still flickers when I run your code. Whatever window is currently > on top (including the desktop itself in case everything is minimized) when > the dialog is displayed, it is repainted in full upon displaying the dialog. > I'm still sticking with my earlier example, for a few extra lines of code it > produced a cleaner effect for the user. I know that there is a little bit a flickering I mentioned it in my previous post. I didn't say that the example is perfect :-) > > OpenDialog1 = new TOpenDialog(this); > > I am wondering, why do you keep showing examples that dynamically create > everything at runtime instead of using the form designer at designtime? There are several reasons. One of them is that, in general, the user can see exactly all the components on the form and their properties without posting extra files. Never develop any form at design time. Do everything at runtime is less error-prone. Imagine that you develop a complex mainform at designtime. Then, one day you open the project and by mistake you change the value of some properties in your Object Inspector without realizing. Then you recompile your project and now your program has got different values for one or more properties and your program runs but does not behave the way you intended to. If you design each and every form at runtime these type of error will never take effect, since your program will set the properties at runtime, overriding any values entered in the Object Inspector by accident. "Computers are machines that make us think that they could think one unthinkable day" Rodolfo, 2003
Technical Details
Message-ID:
<3fa2754a@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!fu-berlin.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mailReferences:
<3FA01311.62845116@uni-trier.de> <3fa19d6a@newsgroups.borland.com> <3fa1a188$1@newsgroups.borland.com> <3fa1b607$1@newsgroups.borland.com> <3fa1d558@newsgroups.borland.com> <3fa1f406@newsgroups.borland.com> <3fa1f692$1@newsgroups.borland.com> <3fa1fc23$1@newsgroups.borland.com> <3fa213d0$1@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 10cc67,5023092a61a6c0b9 X-Google-Attributes: gid10cc67,public X-Google-ArrivalTime: 2003-10-31 07:10:20 PST From: "Rodolfo Frino" <rodolfowrvxg527u7qfrino@yahoo.com.jki> Newsgroups: borland.public.cppbuilder.nativeapi References: <3FA01311.62845116@uni-trier.de> <3fa19d6a@newsgroups.borland.com> <3fa1a188$1@newsgroups.borland.com> <3fa1b607$1@newsgroups.borland.com> <3fa1d558@newsgroups.borland.com> <3fa1f406@newsgroups.borland.com> <3fa1f692$1@newsgroups.borland.com> <3fa1fc23$1@newsgroups.borland.com> <3fa213d0$1@newsgroups.borland.com> Subject: Re: Want to change position of standard dialogs Date: Sat, 1 Nov 2003 01:44:43 +1100 Lines: 42 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2800.1158 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165 NNTP-Posting-Host: 203.206.21.231 Message-ID: <3fa2754a@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1067611466 203.206.21.231 (31 Oct 2003 06:44:26 -0700) Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!fu-berlin.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail