One of the things I've been working on lately is figuring out how to get bitmaps to icons in a solid way (this is concerning the system tray component I posted earlier).
I have a procedure worked out that seems to do the job of converting a TBitmap to TIcon okay. Now I can package that in with the system tray component and probably be done with regards to getting that piece stable.
But the thing I'm thinking is if there would be a solid way to extend the TIcon component in such a way to expose a TCanvas, which corresponds to a TBitmap? That's the general issue in trying to create icons in VCL - I don't notice a TCanvas association.
I'm not thinking of a solid way to keep the TIcon updated if one draws on the canvas, though, without continually firing the BMP to ICO procedure on TCanvas.OnChange, and this doesn't seem to be the optimal way.
Any ideas?
It is not possible for anyone to acknowledge truth when their salary depends on them not doing it.
I have a procedure worked out that seems to do the job of converting a TBitmap to TIcon okay. Now I can package that in with the system tray component and probably be done with regards to getting that piece stable.
But the thing I'm thinking is if there would be a solid way to extend the TIcon component in such a way to expose a TCanvas, which corresponds to a TBitmap? That's the general issue in trying to create icons in VCL - I don't notice a TCanvas association.
I'm not thinking of a solid way to keep the TIcon updated if one draws on the canvas, though, without continually firing the BMP to ICO procedure on TCanvas.OnChange, and this doesn't seem to be the optimal way.
Any ideas?
It is not possible for anyone to acknowledge truth when their salary depends on them not doing it.