mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-04-23 00:59:31 +02:00
TAChart: Update chart after a change of Transform.Enabled
git-svn-id: trunk@24509 -
This commit is contained in:
parent
bc0ebc593b
commit
e1e2609bb3
@ -36,6 +36,7 @@ type
|
||||
private
|
||||
FEnabled: Boolean;
|
||||
FTransformations: TChartAxisTransformations;
|
||||
procedure SetEnabled(AValue: Boolean);
|
||||
procedure SetTransformations(AValue: TChartAxisTransformations);
|
||||
protected
|
||||
procedure ReadState(Reader: TReader); override;
|
||||
@ -58,7 +59,7 @@ type
|
||||
property Transformations: TChartAxisTransformations
|
||||
read FTransformations write SetTransformations;
|
||||
published
|
||||
property Enabled: Boolean read FEnabled write FEnabled default true;
|
||||
property Enabled: Boolean read FEnabled write SetEnabled default true;
|
||||
end;
|
||||
|
||||
TAxisTransformClass = class of TAxisTransform;
|
||||
@ -325,6 +326,13 @@ begin
|
||||
Transformations := Reader.Parent as TChartAxisTransformations;
|
||||
end;
|
||||
|
||||
procedure TAxisTransform.SetEnabled(AValue: Boolean);
|
||||
begin
|
||||
if FEnabled = AValue then exit;
|
||||
FEnabled := AValue;
|
||||
Changed;
|
||||
end;
|
||||
|
||||
procedure TAxisTransform.SetIndex(AValue: Integer);
|
||||
begin
|
||||
with Transformations.List do
|
||||
|
Loading…
Reference in New Issue
Block a user