Trevor Jones said:

> 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.

Believe me when I say that avoiding image list is one of the best things
that you can possibly do! We have a large image list and have some serious
problems with certain video cards and their drivers where the transparent
images are dran non-transparently, partially, not at all, or the wrong
image is drawn.

Most of the S3-Trio, Intel i810 video and some earily ATI Rage cards have
drivers that just don't handle masked blits correctly over a certain
point. At this stage I'm on the verge of writing my own careful minimal
transparent blit operation for image list type bitmaps just so that we can
avoid all the damn support calls about the pink backgrounds and having to
explain why the video driver bugs are not our problem. Sigh.

Cheers, Max.


---------------------------------------------------------------------------
    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"

Reply via email to