Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / lazarus / 2008-05

TIcon SaveToStream and SaveToFile not working...

5 messages · 2 people · –

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Dominique Louis

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?

Dominique.

Reply by email

Marc Weustink
to Dominique Louis
Dominique Louis wrote 9 lines
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

Reply by email

Dominique Louis
to Marc Weustink
Marc Weustink wrote
TIcon (and TGraphic-TBitmap-TIcon hierarchy) is completely rewritten at this moment. After that, this problem is probably solved.

This sounds great Marc! Any rough ETA on when it will be ready? I need to tell the folks backing my project when it is likely to be fixed, as it's stopping the public beta release.

Dominique.

Reply by email

Marc Weustink
to Dominique Louis
Dominique Louis wrote 7 lines
Marc Weustink wrote: > TIcon (and TGraphic-TBitmap-TIcon hierarchy) is completely rewritten at > this moment. After that, this problem is probably solved. This sounds great Marc! Any rough ETA on when it will be ready? I need to tell the folks backing my project when it is likely to be fixed, as it's stopping the public beta release.

Paul is "bugging" me about it for at least half a year :) It took some time to start. Classes are reorganized and basic design of TIcon is done in a few days I hope to finish the loader and the displaying part. After that the missing Delphi compat fuctions need to be added (if any) and the widgetset dependant creation if an handle is needed needs to be done. Finally saving of new and modified icons needs to be implemented.

Marc

Reply by email

Dominique Louis
to Marc Weustink
Marc Weustink wrote 6 lines
Paul is "bugging" me about it for at least half a year :) It took some time to start. Classes are reorganized and basic design of TIcon is done in a few days I hope to finish the loader and the displaying part. After that the missing Delphi compat fuctions need to be added (if any) and the widgetset dependant creation if an handle is needed needs to be done. Finally saving of new and modified icons needs to be implemented.

Sounds like it will be worth the wait. From what you say though, this looks like it will take longer than this month to polish off.

Any suggestions/insight on how I might get the current implementation of TIcon working until then?

Dominique.

Reply by email