From 528b7210b5e69326e6e0b147473d0ff083be52f5 Mon Sep 17 00:00:00 2001 From: jesus Date: Wed, 12 Sep 2018 02:02:57 +0000 Subject: [PATCH] LCL: modified grid comment about exchange cols/rows git-svn-id: trunk@58957 - --- lcl/grids.pas | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/lcl/grids.pas b/lcl/grids.pas index 93c7db1014..85bab9a38e 100644 --- a/lcl/grids.pas +++ b/lcl/grids.pas @@ -3691,7 +3691,7 @@ procedure TCustomGrid.ColRowMoved(IsColumn: Boolean; FromIndex,ToIndex: Integer) begin end; -{Use in derived grids to exchange the actual data} +// Notification to inform derived grids to exchange their actual rows data procedure TCustomGrid.ColRowExchanged(IsColumn: Boolean; index, WithIndex: Integer); begin end; @@ -6282,10 +6282,11 @@ begin ColRowExchanged(IsColumn, index, WithIndex); exit; end; + // exchanges column widths or row heights if IsColumn then - FCols.Exchange(index, WithIndex) //exchanges the dimensions (width/height) of the resp. columns + FCols.Exchange(index, WithIndex) else - FRows.Exchange(index, WithIndex); //exchanges the dimensions (width/height) of the resp. rows + FRows.Exchange(index, WithIndex); ColRowExchanged(IsColumn, index, WithIndex); VisualChange;