There is an icon with a transparent background. Is it possible to show a change in the background color of this icon in FW ?
There is an icon with a transparent background. Is it possible to show a change in the background color of this icon in FW ?
METHOD Paint() CLASS TIcon
LOCAL hBrush
// Create a brush with the background color
hBrush := CreateSolidBrush( ::nClrPane )
// Fill the background
FillRect( ::hDC, { 0, 0, ::nRight - ::nLeft, ::nBottom - ::nTop }, hBrush )
// Clean up the brush
DeleteObject( hBrush )
// Draw the icon
DrawIcon( ::hDC, 0, 0, ::hIcon )
RETURN nilThat is, instead of ::nClrPane, specify my fill color ?
Yes, thats the idea
Has the icon got a transparent area for its background ?
Yes
Can you provide an url to download the icon ?
thanks