Include image in executable

Hello Rooters

I have an other question:
Is it possible to include image in .exe file and let appear it in a TGIcon for example.

Yes , the .exe will be bigger , but this avois search of .jpg file during execution…
and can be usefull in few cases.

Thanks for your helps

Luc

Hi Luc,

You can do that creating pictures as XPM data - please see the attached example.

Cheers, Ilka
icon.C (2.17 KB)

Thanks , Ilka!
It 's exactely what I wanted!!

Luc