[delphizip] Re: bug

  • From: Roger Aelbrecht <Roger.Aelbrecht@xxxxxxxxx>
  • To: delphizip@xxxxxxxxxxxxx
  • Date: Fri, 02 Feb 2007 15:29:02 +0100

R.Peters wrote:
> The problem is with ImageList or more specifically with copying icons in an
> ImageList - goes in one size comes out another.
> I tested the icon 'size' before insertion and after extraction under
> different Delphi versions (Cbuilder 6 and 2006 use the Delphi code) and did
> not have one return the right size - this is rather surprising because the
> 'cloning' (copying) of the image is done by commctl.dll 
> Delphi 4  out = 318  
> Delphi 7  out = 318
> BDS 4     out = 4286
> 
> The only 'cure' appears to be to rewrite the Demo to not use TImageList for
> the icons.
> - Russell Peters
> -----Original Message-----
> From: delphizip-bounce@xxxxxxxxxxxxx [mailto:delphizip-bounce@xxxxxxxxxxxxx]
> On Behalf Of Don
> Sent: Friday, February 02, 2007 8:56 AM
> To: delphizip@xxxxxxxxxxxxx
> Subject: [delphizip] Re: bug
> Importance: High
> 
> I don't think there is a problem with zipbuilder 1790602 & BCB5.  The
> problem is with BDS2006 - CBuilder.  The IconStream->Size is 4286 instead of
> 766. I get this even if I manually tell it to use the default.ico that works
> with BCB5.  Roger, I know that you don't have 
> BDS2006 so I don't know how we are going to resolve this.   Is there 
> anything I can do here to help find this problem?
> Don
> 
> -----------


Your findings confirm what I already found and wrote in a previous 
posting that the ImageList is returning a completely different size in 
BDS4 than it does in BCB5

Don, I have 'TurboC++ 2006 Explorer' ( is hte C+ personality of BDS4 
with restrictions) and found a way to use TZipBuilder without installing 
it in the IDE.

I can offer two solutions.
1- I changed CDemo1 so that it does not use TImageList to store the 
icons but invisible TImage components. After testing it with TC2006 I 
will put the updated files on my website.

2- I will try to find a way code that allows replacing the icons with a 
larger or smaller one. Don't know if that is possible and will require 
some more research and testing.


-- 
Roger Aelbrecht


-----------
To unsubscribe from this list, send an empty e-mail 
message to:
  delphizip-request@xxxxxxxxxxxxx 
and put the word unsubscribe in the subject.

Other related posts: