Yeah, that sounds easiest. Just a note: you'll have to use
AddMasked(Bitmap, clPink(?)) in order to make the mask work.
Cheers,
Carl
-----Original Message-----
From: Trevor Jones [mailto:[EMAIL PROTECTED]]
Sent: Friday, 1 December 2000 2:02 PM
To: Multiple recipients of list delphi
Subject: Re: [DUG]: Bitmap transparency
If you're especially lazy and want something else to do all the work, try
using an imagelist
(I'm assuming your four little bitmaps are the sime size and shape)
The in your OnDrawCell event you can use
ImageList.Draw( Canvas, Rect.Left, Rect.Top, ImageIndex )
Be sure to set your imagelist masked property to true.
Image index is of course the thing you use to pick which of the images is
drawn.
---------------------------------------------------------------------------
New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED]
Website: http://www.delphi.org.nz
To UnSub, send email to: [EMAIL PROTECTED]
with body of "unsubscribe delphi"