Hi!
I want to create a Alpha Bitbtn that have N kind, and all Kind have a predefined hungarian caption, glyph, and modalresult.
Everything is ok with it, only one thing I don't know – this is PNG image list that came from resource.
I saw here, how to load PNG Image from resource, and how to store them before.
http://www.ciuly.com/delphi/multimedia/loading-a-png-image-from-a-resource/
But this is an unknown area for me. As I see the sAlphaImageList supports “Add” methods, but they are need Bitmaps.
I don't know, how to load PNG image from resource, and how to pass to Add method.
Can you help me in this?
Thanks:
dd
Ps:
And is it bug?
else begin
Png := TPNGGraphic.Create;
rs := TResourceStream.Create(hInstance, ResName, RT_RCDATA); // aInstance needed, or not?