Reinaldo,
Use the clause TRANSPARENT
Reinaldo,
Use the clause TRANSPARENT
ops, I just realized you were talking about TSButtons.
TSButton should be changed to use FWH TransBmp() function. There is a sample of use in source\classes\bitmap.prg
Anotnio;
thank you.
source\classes\bitmap.prg is the source for the actual class tbitmap. It does not show a sample on how to use it.
Please try again,
Reinaldo.
hBmpOld = SelectObject( ::hDC, ::hBitmap )
nZeroZeroClr = GetPixel( ::hDC, 0, 0 )
SelectObject( ::hDC, hBmpOld )
nOldClr = SetBkColor( ::hDC, nRGB( 255, 255, 255 ) )
TransBmp( ::hBitmap, ::nWidth(), ::nHeight(), nZeroZeroClr, ::hDC,;
::nX, ::nY, Super:nWidth(), Super:nHeight() )
SetBkColor( ::hDC, nOldClr )ohh, I see.
Perhaps someone has already patch Tsbutton to work with TRANSPARENT clause?
Reinaldo.