[Lazarus] Graphics changes (r15472)

Kostas Michalopoulos badsector at slashstone.com
Sun Jun 22 20:39:18 CEST 2008


> Yes, you cannot change the size of an Icon, since an icon contains on or
> more images of different sizes/depths
>
> Use Icon.Add() to add a new image with given size and depth, then use
> TIcon.Current to select the wanted image.
>
> Marc

Cannot this be done transparently so it won't break the code? Even with a 
boolean property to enable/disable this, it would be nice. Or if not, make 
width and size read-only. IMHO it is a bad surprise for the user to get this 
exception when the object allows the assignment of width and height fields.

Of course this isn't a high priority thing or anything, but it looks more 
"polished" i think :-)

Kostas




More information about the Lazarus mailing list