mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-10-23 11:41:45 +02:00
TAChart: Add DragOrigin to basic series (point where DatapointDragTool starts to operate).
git-svn-id: trunk@54015 -
This commit is contained in:
parent
5884ef95c3
commit
df344043fb
@ -47,6 +47,7 @@ type
|
||||
FActive: Boolean;
|
||||
FChart: TChart;
|
||||
FDepth: TChartDistance;
|
||||
FDragOrigin: TPoint;
|
||||
FShadow: TChartShadow;
|
||||
FTransparency: TChartTransparency;
|
||||
FZPosition: TChartDistance;
|
||||
@ -89,6 +90,7 @@ type
|
||||
|
||||
property Active: Boolean read FActive write SetActive default true;
|
||||
property Depth: TChartDistance read FDepth write SetDepth default 0;
|
||||
property DragOrigin: TPoint read FDragOrigin write FDragOrigin;
|
||||
property ParentChart: TChart read FChart;
|
||||
property Shadow: TChartShadow read FShadow write SetShadow;
|
||||
property Transparency: TChartTransparency
|
||||
|
@ -1728,6 +1728,7 @@ begin
|
||||
FindNearestPoint(APoint);
|
||||
if FSeries = nil then exit;
|
||||
FOrigin := NearestGraphPoint;
|
||||
FSeries.DragOrigin := APoint;
|
||||
p := FChart.ImageToGraph(APoint);
|
||||
FDistance := p - FOrigin;
|
||||
if Assigned(OnDragStart) then begin
|
||||
|
Loading…
Reference in New Issue
Block a user