I have not followed the discussion, but if the order of setting
Width/Height is the issue, a typical solution is to postpone the resize
until image is actually needed, and mark the component as Dirty. This is
known as "Lazy Evaluation", a common optimization technique. This way any
change to width/height will not take any effect until the image is actually
needed, and setting Width/Height will work the same way as using SetSize.
With best regards,
Boian Mitov
--------------------------------------------------------------------
Mitov Software
http://www.mitov.com
--------------------------------------------------------------------
----- Original Message -----
From: "Marc Weustink" <[EMAIL PROTECTED]>
To: "General mailing list" <[email protected]>
Sent: Monday, June 23, 2008 2:49 AM
Subject: Re: [Lazarus] Graphics changes (r15472)
> How would this work. We have a SetSize method, but moth users woud set
> Width and Height separately. Imagine the next scenario:
> Current Icon is 16x16, size is changed to 32x32 by setting width first
> so it becomes a 32x16 icon. Should this one be added, or should an Icon
> looked up with this width ?
_______________________________________________
Lazarus mailing list
[email protected]
http://www.lazarus.freepascal.org/mailman/listinfo/lazarus