mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-05-01 23:03:41 +02:00
59 lines
1.5 KiB
ObjectPascal
59 lines
1.5 KiB
ObjectPascal
{
|
|
|
|
TeeChart compatibility.
|
|
|
|
*****************************************************************************
|
|
* *
|
|
* See the file COPYING.modifiedLGPL.txt, included in this distribution, *
|
|
* for details about the copyright. *
|
|
* *
|
|
* This program is distributed in the hope that it will be useful, *
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of *
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. *
|
|
* *
|
|
*****************************************************************************
|
|
|
|
Authors: Alexander Klenin
|
|
|
|
}
|
|
unit TAChartTeeChart;
|
|
|
|
{$H+}
|
|
|
|
interface
|
|
|
|
uses
|
|
Classes, SysUtils,
|
|
TAGraph, TAChartAxis, TAChartAxisUtils;
|
|
|
|
type
|
|
TChartTeeChart = class helper for TChart
|
|
private
|
|
// Workaround for issue #21809.
|
|
function GetAxisByAlign(AIndex: TChartAxisAlignment): TChartAxis;
|
|
public
|
|
property RightAxis: TChartAxis index calRight read GetAxisByAlign;
|
|
property TopAxis: TChartAxis index calTop read GetAxisByAlign;
|
|
end;
|
|
|
|
implementation
|
|
|
|
{ TChartTeeChart }
|
|
|
|
function TChartTeeChart.GetAxisByAlign(AIndex: TChartAxisAlignment): TChartAxis;
|
|
begin
|
|
Result := inherited GetAxisByAlign(AIndex);
|
|
end;
|
|
|
|
procedure Dummy;
|
|
begin
|
|
// Workaround for issue #21808.
|
|
end;
|
|
|
|
initialization
|
|
|
|
Dummy;
|
|
|
|
end.
|
|
|