mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-20 13:19:21 +02:00
TAChart: Add TeeChart-compatible TCustomChartSeries.Style property
git-svn-id: trunk@36923 -
This commit is contained in:
parent
c2a1945430
commit
f7133e6e90
@ -24,7 +24,8 @@ interface
|
||||
|
||||
uses
|
||||
Classes, SysUtils,
|
||||
TAGraph, TAChartAxis, TAChartAxisUtils, TAChartUtils, TASeries;
|
||||
TAGraph, TAChartAxis, TAChartAxisUtils, TAChartUtils, TACustomSeries,
|
||||
TASeries;
|
||||
|
||||
type
|
||||
TChartTeeChart = class helper for TChart
|
||||
@ -59,8 +60,33 @@ type
|
||||
property AxisIndexY default 1;
|
||||
end;
|
||||
|
||||
TChartSeriesStyle = set of (
|
||||
tssIsTemplate, tssDenyChangeType, tssDenyDelete, tssDenyClone,
|
||||
tssIsPersistent, tssHideDataSource);
|
||||
|
||||
TCustomChartSeriesTeeChart = class helper for TCustomChartSeries
|
||||
strict private
|
||||
function GetStyle: TChartSeriesStyle; inline;
|
||||
procedure SetStyle(AValue: TChartSeriesStyle); inline;
|
||||
published
|
||||
// Does not do anything, just avoid IFDEFs in client code.
|
||||
property Style: TChartSeriesStyle read GetStyle write SetStyle default [];
|
||||
end;
|
||||
|
||||
implementation
|
||||
|
||||
{ TCustomChartSeriesTeeChart }
|
||||
|
||||
function TCustomChartSeriesTeeChart.GetStyle: TChartSeriesStyle;
|
||||
begin
|
||||
Result := [];
|
||||
end;
|
||||
|
||||
procedure TCustomChartSeriesTeeChart.SetStyle(AValue: TChartSeriesStyle);
|
||||
begin
|
||||
Unused(AValue);
|
||||
end;
|
||||
|
||||
{ THorizBarSeries }
|
||||
|
||||
function THorizBarSeries.AddXY(
|
||||
|
Loading…
Reference in New Issue
Block a user