StringGrid DrawCell aCol draws previous columns item
Original Reporter info from Mantis: 452
-
Reporter name: Ihor Lavrynyuk
Original Reporter info from Mantis: 452
- Reporter name: Ihor Lavrynyuk
Description:
http://www.youtube.com/watch?v=nlNunJZ6ZS8
draws previous columns item...
procedure TfrmMain.StringGridGroupsDrawCell(Sender: TObject; aCol,
aRow: Integer; aRect: TRect; aState: TGridDrawState);
var
bmp: TBitmap;
begin
//if ((aCol=1) AND (aRow > 0)) then begin // AND (aRow > 0))
if (StringGridGroups.Columns.Items[aCol].Title.Caption='id') then begin
bmp := TBitmap.Create;
FrmMain.ImageList2.GetBitmap(0,bmp);
StringGridGroups.Canvas.Draw(aRect.Left,aRect.Top,bmp);
bmp.Free;
end;
end;
Mantis conversion info:
- Mantis ID: 21987
- OS: Windows 7
- OS Build: Ultimate SP1 V5
- Build: 37219
- Platform: x64
- Version: 1.1 (SVN)
- Fixed in version: 1.1 (SVN)
- Fixed in revision: 37296 (#6c345d57)