From: Craig Stuntz [TeamB] Newsgroups: borland.public.delphi.non-technical Subject: Re: Tech Note: CLX Form Portability Date: Tue, 31 Dec 2002 10:24:30 -0500 Message-ID: References: <3e1140d3$1@newsgroups.borland.com> Organization: Vertex Systems Corporation X-Newsreader: MicroPlanet Gravity v2.60 NNTP-Posting-Host: 65.86.87.242 X-Trace: newsgroups.borland.com 1041348268 65.86.87.242 (31 Dec 2002 07:24:28 -0800) Lines: 30 Path: newsgroups.borland.com!not-for-mail Xref: newsgroups.borland.com borland.public.delphi.non-technical:341947 In article <3e1140d3$1@newsgroups.borland.com>, efg2@efg2.com says... > CLX Form Portability -- or, why you should never use the default AutoScroll > setting on a form AutoScroll, AFAICS, should never be used at all, CLX or VCL. > (The default Scaled property may not be a good idea, > either). > This one is actually useful, but one should not presume that it will automatically work under all circumstances. It requires testing and tweaking, and there are certain things that it doesn't work well in combination with. In particular, you must never assign a constant value to position a control. For example, instead of writing: Button2.Left := 120; ...write: Button2.Left := Button1.Left + Button1.Width + (Button1.Height div 2); Nice article. -Craig -- Craig Stuntz [TeamB] · Vertex Systems Corp. · Columbus, OH Delphi/InterBase Weblog : http://delphi.weblogs.com InterBase Perf. Monitor : http://delphi.weblogs.com/IBPerformanceMonitor InterBase PLANalyzer 1.1: http://delphi.weblogs.com/IBPLANalyzer