You've already forked lazarus-ccr
fpspreadsheet: Remove code which repaints the entire worksheet grid if the mouse is moved into anohter cell.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@6191 8e941d3f-bd1b-0410-a28a-d453659cc2b4
This commit is contained in:
@ -5022,23 +5022,31 @@ end;
|
|||||||
grid instead.
|
grid instead.
|
||||||
-------------------------------------------------------------------------------}
|
-------------------------------------------------------------------------------}
|
||||||
procedure TsCustomWorksheetGrid.MouseMove(Shift: TShiftState; X, Y: Integer);
|
procedure TsCustomWorksheetGrid.MouseMove(Shift: TShiftState; X, Y: Integer);
|
||||||
|
{
|
||||||
|
--- wp: removed this for testing: why does the entire grid be repainted when the
|
||||||
|
mouse moved to another cell?
|
||||||
var
|
var
|
||||||
prevMouseCell: TPoint;
|
prevMouseCell: TPoint;
|
||||||
|
}
|
||||||
begin
|
begin
|
||||||
if Worksheet = nil then
|
if Worksheet = nil then
|
||||||
exit;
|
exit;
|
||||||
|
|
||||||
|
{ --- wp
|
||||||
prevMouseCell := GCache.MouseCell;
|
prevMouseCell := GCache.MouseCell;
|
||||||
|
}
|
||||||
|
|
||||||
inherited;
|
inherited;
|
||||||
|
|
||||||
if MouseOnHeader(X,Y) then
|
if MouseOnHeader(X,Y) then
|
||||||
exit;
|
exit;
|
||||||
|
|
||||||
|
{ --- wp
|
||||||
if FTextOverflow and
|
if FTextOverflow and
|
||||||
((prevMouseCell.X <> GCache.MouseCell.X) or (prevMouseCell.Y <> GCache.MouseCell.Y))
|
((prevMouseCell.X <> GCache.MouseCell.X) or (prevMouseCell.Y <> GCache.MouseCell.Y))
|
||||||
then
|
then
|
||||||
InvalidateGrid;
|
InvalidateGrid;
|
||||||
|
}
|
||||||
|
|
||||||
if Assigned(Dragmanager) and DragManager.IsDragging then
|
if Assigned(Dragmanager) and DragManager.IsDragging then
|
||||||
begin;
|
begin;
|
||||||
|
Reference in New Issue
Block a user