StringGrid - colocando bitmap |
Top Previous Next |
In your StringGrid's OnDrawCell event handler, place some code that resembles:
with (Sender as TStringGrid) do with Canvas do begin {...} Draw(Rect.Left, Rect.Top, Image1.Picture.Graphic); {...} end;
Using the Draw() or StretchDraw() method of TCanvas should do the trick. BTW, Image1 above is a TImage with a bitmap already loaded into it. |