mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-04-23 03:59:56 +02:00
TAChart: Add TChart.OnExtentChanging event
git-svn-id: trunk@38891 -
This commit is contained in:
parent
e75056a790
commit
d102797393
@ -206,6 +206,7 @@ type
|
||||
FOffset: TDoublePoint; // Coordinates transformation
|
||||
FOnAfterPaint: TChartEvent;
|
||||
FOnExtentChanged: TChartEvent;
|
||||
FOnExtentChanging: TChartEvent;
|
||||
FPrevLogicalExtent: TDoubleRect;
|
||||
FReticuleMode: TReticuleMode;
|
||||
FReticulePos: TPoint;
|
||||
@ -388,7 +389,10 @@ type
|
||||
read FOnBeforeDrawBackWall write SetOnBeforeDrawBackWall;
|
||||
property OnDrawReticule: TDrawReticuleEvent
|
||||
read FOnDrawReticule write SetOnDrawReticule;
|
||||
property OnExtentChanged: TChartEvent read FOnExtentChanged write FOnExtentChanged;
|
||||
property OnExtentChanged: TChartEvent
|
||||
read FOnExtentChanged write FOnExtentChanged;
|
||||
property OnExtentChanging: TChartEvent
|
||||
read FOnExtentChanging write FOnExtentChanging;
|
||||
|
||||
published
|
||||
property Align;
|
||||
@ -764,6 +768,8 @@ begin
|
||||
ldd := PrepareLegend(ADrawer, FClipRect);
|
||||
try
|
||||
PrepareAxis(ADrawer);
|
||||
if (FPrevLogicalExtent <> FLogicalExtent) and Assigned(OnExtentChanging) then
|
||||
OnExtentChanging(Self);
|
||||
|
||||
ADrawer.DrawingBegin(ARect);
|
||||
ADrawer.SetAntialiasingMode(AntialiasingMode);
|
||||
|
Loading…
Reference in New Issue
Block a user