Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Delphi IDE changing imagelist in inherited DFM files

When opening a form which contains an inherited TImageList in Delphi (2010 in this case, but it may do it for other versions), the IDE invariably (I can't find any rhyme or rhythm to it) adds the image data again to the inherited form. This then increases the size of the executable. any one know why, and how I can stop it happening? I repeat, the image has not changed.

like image 264
Bernhard Avatar asked Mar 15 '11 17:03

Bernhard


2 Answers

This is a known issue with TImageList, and there's not much you can do about it except to keep deleting the garbage data again. (BeyondCompare can be very useful here, especially in conjunction with source control.) If you want to see it fixed, please vote for the QC report on it.

like image 200
Mason Wheeler Avatar answered Oct 14 '22 03:10

Mason Wheeler


What I do is put the imagelist on a data module and then add it to the forms uses clause. The form designer will be able to see the image list

like image 20
Jamie Avatar answered Oct 14 '22 03:10

Jamie