Using Delphi 2010.
I am looking for (possibly) a function or procedure which can be passed a TForm & a image (TImage or TBitmap) and it can change the forms icon, either overwriting the current one, or writing the new one in a particular location, adjusting the caption when necessary. Must work with both modal and non-modal forms.
Example:
procedure ChangeFormIcon(AForm: TForm; AIcon: TBitmap;
All other suggestions welcomed
Thanx
Something like this should do what you want. I’ve assumed that you are using 32bpp bitmaps with, potentially, alpha blending. If you want to use mask based transparency then you would need to re-work the code to create an appropriate mask bitmap.