added ptach from Jesus Reyes A.

git-svn-id: trunk@3793 -
This commit is contained in:
mattias 2003-01-06 17:42:46 +00:00
parent 2d0fb715b4
commit bee1819dea

View File

@ -1428,20 +1428,18 @@ end;
procedure TCustomGrid.Paint; procedure TCustomGrid.Paint;
begin begin
Inherited Paint; Inherited Paint;
If Not (csDesigning in ComponentState) Then begin If FUpdateCount=0 Then begin
If FUpdateCount=0 Then begin //WriteLn('Paint: FGCache.ValidGrid=',FGCache.ValidGrid );
//WriteLn('Paint: FGCache.ValidGrid=',FGCache.ValidGrid ); DrawEdges;
DrawEdges; DrawBackGround;
DrawBackGround; If FGCache.ValidGrid Then begin
If FGCache.ValidGrid Then begin {
{ DrawFixedCells;
DrawFixedCells; DrawInteriorCells;
DrawInteriorCells; DrawFocused;
DrawFocused; }
} DrawByRows;
DrawByRows; DrawColRowMoving;
DrawColRowMoving;
End;
End; End;
End; End;
End; End;
@ -2321,7 +2319,6 @@ begin
inherited MouseDown(Button, Shift, X, Y); inherited MouseDown(Button, Shift, X, Y);
If Not FGCache.ValidGrid Then Exit; If Not FGCache.ValidGrid Then Exit;
If Not (ssLeft in Shift) Then Exit; If Not (ssLeft in Shift) Then Exit;
Gz:=MouseToGridZone(X,Y, False); Gz:=MouseToGridZone(X,Y, False);
Case Gz of Case Gz of
gzFixedCols: gzFixedCols: