mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-12-02 23:37:18 +01:00
TAChart: Set default TDataPointDistanceTool.Distance units to cuAxis.
Pass both axis and graph distance to Marks.Format. git-svn-id: trunk@38446 -
This commit is contained in:
parent
5f862a412a
commit
1abb40c5f4
@ -81,7 +81,7 @@ type
|
||||
public
|
||||
constructor Create(AOwner: TComponent); override;
|
||||
destructor Destroy; override;
|
||||
function Distance(AUnits: TChartUnits = cuGraph): Double;
|
||||
function Distance(AUnits: TChartUnits = cuAxis): Double;
|
||||
procedure KeyDown(APoint: TPoint); override;
|
||||
procedure KeyUp(APoint: TPoint); override;
|
||||
procedure MouseDown(APoint: TPoint); override;
|
||||
@ -258,7 +258,7 @@ end;
|
||||
// datetime string.
|
||||
function TDataPointDistanceTool.GetDistanceText: String;
|
||||
begin
|
||||
Result := Format(Marks.Format, [Distance]);
|
||||
Result := Format(Marks.Format, [Distance(cuAxis), Distance(cuGraph)]);
|
||||
if Assigned(OnGetDistanceText) then
|
||||
OnGetDistanceText(Self, Result);
|
||||
end;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user