[lazarus] Major modifications added to CVS

Michael A. Hess mhess at miraclec.com
Mon Jul 19 06:06:30 EDT 1999


Michael Van Canneyt wrote:
> 
> In principle, all other Position/Size stuff should call SetBounds in
> the end. This way you only need 1 call to be ported when going to a
> new toolkit;
> namely setbounds.

Actually they all call the same routine as far as porting goes. It is
just that when you do something like

Left := 100;

it calls the appropriate gtk routines to adjust the component which then
fires a resize event. If you have to set all 4 coordinates it does the
whole process 4 times, somewhat wasteful. By using SetBounds it sets all
the coordinates with just the one gtk call and resize event. Just
somewhat more effecient.

-- 
==== Programming my first best destiny! ====

Michael A. Hess      Miracle Concepts, Inc.
mhess at miraclec.com   http://www.miraclec.com






More information about the Lazarus mailing list