AK
Size: a a a
AK
DB
AK
procedure TROSearchItemForm.sgSearchResultDrawCell(Sender: TObject; aCol,
aRow: Integer; aRect: TRect; aState: TGridDrawState);
var
ls:String;
lp:TPicture;
idx:integer;
begin
if (aRow>0) and (aCol=0) then
begin
idx:=StrToInt(sgSearchResult.Cells[sgSearchResult.ColCount-1,aRow]);
ls:=RODB_GetSprite(idx,1,rosmItem);
if ls='' then exit;
lp:=TPicture.Create;
try
lp.LoadFromFile(ls);
except
exit;
end;
sgSearchResult.RowHeights[aRow]:=lp.Height+4;
sgSearchResult.Canvas.Draw(aRect.Left+2,aRect.Top+2,lp.Bitmap);
lp.Free;
end;
end;
AK
DB
AK
VA
procedure TROSearchItemForm.sgSearchResultDrawCell(Sender: TObject; aCol,
aRow: Integer; aRect: TRect; aState: TGridDrawState);
var
ls:String;
lp:TPicture;
idx:integer;
begin
if (aRow>0) and (aCol=0) then
begin
idx:=StrToInt(sgSearchResult.Cells[sgSearchResult.ColCount-1,aRow]);
ls:=RODB_GetSprite(idx,1,rosmItem);
if ls='' then exit;
lp:=TPicture.Create;
try
lp.LoadFromFile(ls);
except
exit;
end;
sgSearchResult.RowHeights[aRow]:=lp.Height+4;
sgSearchResult.Canvas.Draw(aRect.Left+2,aRect.Top+2,lp.Bitmap);
lp.Free;
end;
end;
DB
AK
DB
AK
VA
AK
DB
VA
DB
AK
DB
AK
AK