mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-18 01:19:16 +02:00
LCL, make grid remember changes in fixedcols or fixedrows in a fixed grid (grid with 0 cols or rows), issue #18832
git-svn-id: trunk@29746 -
This commit is contained in:
parent
210306ecb8
commit
ae13b849e4
@ -2279,8 +2279,14 @@ procedure TCustomGrid.SetFixedCols(const AValue: Integer);
|
|||||||
var
|
var
|
||||||
EditorAffected: boolean;
|
EditorAffected: boolean;
|
||||||
begin
|
begin
|
||||||
if FFixedCols=AValue then
|
if FFixedCols=AValue then begin
|
||||||
|
if FixedGrid and FGridPropBackup.ValidData then begin
|
||||||
|
// user modified fixed properties in fixed grid
|
||||||
|
// update stored values
|
||||||
|
FGridPropBackup.FixedColCount := AValue;
|
||||||
|
end;
|
||||||
exit;
|
exit;
|
||||||
|
end;
|
||||||
CheckFixedCount(ColCount, RowCount, AValue, FFixedRows);
|
CheckFixedCount(ColCount, RowCount, AValue, FFixedRows);
|
||||||
|
|
||||||
EditorAffected := (AValue>=FCol);
|
EditorAffected := (AValue>=FCol);
|
||||||
@ -2315,7 +2321,14 @@ procedure TCustomGrid.SetFixedRows(const AValue: Integer);
|
|||||||
var
|
var
|
||||||
EditorAffected: boolean;
|
EditorAffected: boolean;
|
||||||
begin
|
begin
|
||||||
if FFixedRows=AValue then exit;
|
if FFixedRows=AValue then begin
|
||||||
|
if FixedGrid and FGridPropBackup.ValidData then begin
|
||||||
|
// user modified fixed properties in fixed grid
|
||||||
|
// update stored values
|
||||||
|
FGridPropBackup.FixedRowCount := AValue;
|
||||||
|
end;
|
||||||
|
exit;
|
||||||
|
end;
|
||||||
CheckFixedCount(ColCount, RowCount, FFixedCols, AValue);
|
CheckFixedCount(ColCount, RowCount, FFixedCols, AValue);
|
||||||
|
|
||||||
EditorAffected := (AValue>=FRow);
|
EditorAffected := (AValue>=FRow);
|
||||||
|
Loading…
Reference in New Issue
Block a user