1 |
+ |
|
2 |
|
{ |
3 |
|
/*************************************************************************** |
4 |
|
DBControlGrid.pas |
418 |
|
end; |
419 |
|
|
420 |
|
function TRowCache.Add2Cache(RecNo: Longint; Control: TWinControl): TBitmap; |
420 |
– |
var i: integer; |
421 |
|
begin |
422 |
|
Dec(RecNo); {Adust to zero base} |
423 |
|
ExtendCache(RecNo + 1); |
609 |
|
begin |
610 |
|
FCacheRefreshQueued := true; |
611 |
|
Application.QueueAsyncCall(@DoMoveRecord,PtrInt(aRow)); |
612 |
< |
end |
612 |
> |
end; |
613 |
> |
Canvas.FillRect(aRect); |
614 |
|
end |
615 |
|
else |
616 |
|
Canvas.Draw(aRect.Left,aRect.Top,CachedRow) |
1175 |
|
result := dsInactive; |
1176 |
|
end; |
1177 |
|
|
1177 |
– |
var |
1178 |
– |
DataCol: Integer; |
1178 |
|
begin |
1179 |
|
PrepareCanvas(aCol, aRow, aState); |
1180 |
|
|
1285 |
|
procedure TDBControlGrid.KeyDown(var Key: Word; Shift: TShiftState); |
1286 |
|
type |
1287 |
|
TOperation=(opMoveBy,opCancel,opAppend,opInsert,opDelete); |
1289 |
– |
var |
1290 |
– |
DeltaCol,DeltaRow: Integer; |
1288 |
|
|
1289 |
|
procedure DoOnKeyDown; |
1290 |
|
begin |
1686 |
|
FDataLink.Free; |
1687 |
|
end; |
1688 |
|
if assigned(FRowCache) then FRowCache.Free; |
1689 |
+ |
Application.RemoveAsyncCalls(self); |
1690 |
|
inherited Destroy; |
1691 |
|
end; |
1692 |
|
|