[Lazarus] TIcon SaveToStream and SaveToFile not working...

Marc Weustink marc at dommelstein.net
Tue May 6 01:41:18 CEST 2008


Dominique Louis wrote:
> Hi all,
>    After doing a...
> option_icon.Assign(OptionForm.DefaultGameIcon.Picture.Icon);
> 
> Where option_icon = TIcon and DefaultGameIcon = TImage, if I try and do 
> either a SaveToStream and SaveToFile via option_icon, the icon image is 
> corrupted/non-existent.
> 
> Has anyone else seen this, know a fix for it?

TIcon (and TGraphic-TBitmap-TIcon hierarchy) is completely rewritten at 
this moment. After that, this problem is probably solved.

Marc




More information about the Lazarus mailing list