Page 3 of 3

Re: Hard coding picture on a button

Posted: Sat Dec 09, 2017 4:09 pm
by esgici
esgici wrote: Sat Dec 09, 2017 12:26 am But we have a little difference : problem is not BUTTON implementation of HMG, but icon file declared into .rc file; direct definition icon file in BUTTON definition successfully work fine.
And icon file declared into .rc file work fine as icon of .exe :?

Viva HMG :D

Re: Hard coding picture on a button

Posted: Sat Dec 09, 2017 6:26 pm
by RPC
edk wrote: Sat Dec 09, 2017 1:52 pm Hi Rajeev.
It's simple, just look into demo.rc file.
There are defined files, whitch should be embedded in your exe file.
Thanks Edward. Very well explained. Now I got it. It was stupid of me to not pay attention to demo.rc file sent by you.
You can check if the files are attached by extracting them from the created exe file, eg using 7-zip.
There should be a ".rsrc" folder with yours files.
I never knew this. Yes I could see the bmp, ico etc files.
Many thanks :D :D :D

Re: Hard coding picture on a button

Posted: Sat Dec 09, 2017 6:32 pm
by RPC
Esgici, thanks to you too for spending your precious time on my problem :D