mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-10-23 19:01:39 +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;
|
FActive: Boolean;
|
||||||
FChart: TChart;
|
FChart: TChart;
|
||||||
FDepth: TChartDistance;
|
FDepth: TChartDistance;
|
||||||
|
FDragOrigin: TPoint;
|
||||||
FShadow: TChartShadow;
|
FShadow: TChartShadow;
|
||||||
FTransparency: TChartTransparency;
|
FTransparency: TChartTransparency;
|
||||||
FZPosition: TChartDistance;
|
FZPosition: TChartDistance;
|
||||||
@ -89,6 +90,7 @@ type
|
|||||||
|
|
||||||
property Active: Boolean read FActive write SetActive default true;
|
property Active: Boolean read FActive write SetActive default true;
|
||||||
property Depth: TChartDistance read FDepth write SetDepth default 0;
|
property Depth: TChartDistance read FDepth write SetDepth default 0;
|
||||||
|
property DragOrigin: TPoint read FDragOrigin write FDragOrigin;
|
||||||
property ParentChart: TChart read FChart;
|
property ParentChart: TChart read FChart;
|
||||||
property Shadow: TChartShadow read FShadow write SetShadow;
|
property Shadow: TChartShadow read FShadow write SetShadow;
|
||||||
property Transparency: TChartTransparency
|
property Transparency: TChartTransparency
|
||||||
|
@ -1728,6 +1728,7 @@ begin
|
|||||||
FindNearestPoint(APoint);
|
FindNearestPoint(APoint);
|
||||||
if FSeries = nil then exit;
|
if FSeries = nil then exit;
|
||||||
FOrigin := NearestGraphPoint;
|
FOrigin := NearestGraphPoint;
|
||||||
|
FSeries.DragOrigin := APoint;
|
||||||
p := FChart.ImageToGraph(APoint);
|
p := FChart.ImageToGraph(APoint);
|
||||||
FDistance := p - FOrigin;
|
FDistance := p - FOrigin;
|
||||||
if Assigned(OnDragStart) then begin
|
if Assigned(OnDragStart) then begin
|
||||||
|
Loading…
Reference in New Issue
Block a user