TChartListBox.ShowSeriesColor

TeeChart VCL for Borland/CodeGear/Embarcadero RAD Studio, Delphi and C++ Builder.
Post Reply
Scot
Newbie
Newbie
Posts: 5
Joined: Wed Apr 28, 2010 12:00 am

TChartListBox.ShowSeriesColor

Post by Scot » Wed Apr 28, 2010 6:23 pm

TChartListBox.ShowSeriesColor no longer works in TeeChart 2010. Any idea when a fix can be expected?

Scot
Newbie
Newbie
Posts: 5
Joined: Wed Apr 28, 2010 12:00 am

Re: TChartListBox.ShowSeriesColor

Post by Scot » Wed Apr 28, 2010 6:39 pm

Looks like you have to manually assign the ReferenceChart property of the listbox.

Yeray
Site Admin
Site Admin
Posts: 9612
Joined: Tue Dec 05, 2006 12:00 am
Location: Girona, Catalonia
Contact:

Re: TChartListBox.ShowSeriesColor

Post by Yeray » Fri Apr 30, 2010 2:40 pm

Hi Scot,

You have to assign a Chart to the ChartListBox to give sense to ShowSeriesColor, wasn't before?

Code: Select all

procedure TForm1.FormCreate(Sender: TObject);
var Chart1: TChart;
    ChartListBox1: TChartListBox;
    i: Integer;
begin
  Chart1:=TChart.Create(self);
  Chart1.Parent:=Form1;

  for i:=0 to 2 do
    with Chart1.AddSeries(TBarSeries.Create(self)) do FillSampleValues();

  ChartListBox1:=TChartListBox.Create(self);
  ChartListBox1.Parent:=Form1;
  ChartListBox1.Left:=Chart1.Width;
  ChartListBox1.Chart:=Chart1;

  ChartListBox1.ShowSeriesColor:=false;
end;
Best Regards,
ImageYeray Alonso
Development & Support
Steema Software
Av. Montilivi 33, 17003 Girona, Catalonia (SP)
Image Image Image Image Image Image Please read our Bug Fixing Policy

Scot
Newbie
Newbie
Posts: 5
Joined: Wed Apr 28, 2010 12:00 am

Re: TChartListBox.ShowSeriesColor

Post by Scot » Fri Apr 30, 2010 4:30 pm

In TeeChart 2010 assigning a chart is not enough. If you look at the draw item code you will see that the new version has an 'if assigned(referencechart)' check before it draws the series color. This problem is also occurs in the chart editor.

Yeray
Site Admin
Site Admin
Posts: 9612
Joined: Tue Dec 05, 2006 12:00 am
Location: Girona, Catalonia
Contact:

Re: TChartListBox.ShowSeriesColor

Post by Yeray » Fri Apr 30, 2010 4:54 pm

Hi Scot,

You are right. I'm not sure how I've looked at it! :oops:
Best Regards,
ImageYeray Alonso
Development & Support
Steema Software
Av. Montilivi 33, 17003 Girona, Catalonia (SP)
Image Image Image Image Image Image Please read our Bug Fixing Policy

Post Reply