TAChart: Update chart after a change of Transform.Enabled

git-svn-id: trunk@24509 -
This commit is contained in:
ask 2010-04-08 13:15:10 +00:00
parent bc0ebc593b
commit e1e2609bb3

View File

@ -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