[lazarus] CVS Committed

Michael.VanCanneyt at Wisa.be Michael.VanCanneyt at Wisa.be
Fri Jan 12 17:30:52 EST 2001

On Fri, 12 Jan 2001, Robert Scott Horning wrote:

> Marc Weustink wrote:
> > At 15:15 11-01-01 -0600, Shane Miller wrote:
> > >I changed TImageList to keep images in a TList so that I could get it
> > >working for now.  I'm not sure what disadvantages there are using it this
> > >way.  It sure seems simpler....
> >
> > Disadvantage is that it costs a lot of resource handles (every image one).
> > In the original implementation you had only one image handle
> >
> > Did you ceep in mind that you can add larger bitmaps which result in
> > separate images ?
> >
> > Marc
> One reason I would personally prefer an implementation like this is to allow
> adding images of different sizes simultaneously.  By throwing all of the
> images onto a common bitmap (how Delphi does this), you have all kinds of
> problems trying to resize the base bitmap or cropping when images don't
> exactly fit the dimensions you have chosen for the image list.

I don't think this is what Delphi does; TImageList is a simple wrapper
around the Win32 ImageList clsss that appears in comctl32. It is a known
cause of problems, also for Borland.

> One other problem that I have in general with the Delphi implementation is
> that on some occasions the bitmap gets corrupted, requiring me to have to load
> in all of the bitmaps all over again one at a time... and remembering what
> their item indexes were so I don't mess up any controls relying on the image
> list, but that is beyond the scope of this thread.

Upgrade comctl32 to a version that comes with IE 5.5 and many problems may
get solved... but new may appear ;) 


More information about the Lazarus mailing list