Steema Issues Database

Note: This database is for bugs and wishes only. For technical support help, if you are a customer please visit our online forums;
otherwise you can use StackOverflow.
Before using this bug-tracker we recommend a look at this document, Steema Bug Fixing Policy.



Bug 1836

Summary: TSeriesBandTool still drawn when Series2 is inactive
Product: VCL TeeChart Reporter: yeray alonso <yeray>
Component: ToolsAssignee: yeray alonso <yeray>
Status: RESOLVED FIXED    
Severity: enhancement    
Priority: ---    
Version: unspecified   
Target Milestone: ---   
Hardware: PC   
OS: Windows   
URL: http://www.teechart.net/support/viewtopic.php?f=3&t=16524
Chart Series: --- Delphi / C++ Builder RAD IDE Version:

Description yeray alonso 2017-04-07 04:48:03 EDT
TSeriesBandTool still drawn when Series2 is inactive.
This simple code reproduces the problem:

uses Series, TeeSeriesBandTool;

procedure TForm1.FormCreate(Sender: TObject);
begin
  Chart1.View3D:=False;
  Chart1.Legend.Visible:=False;

  Chart1.AddSeries(TLineSeries).FillSampleValues;
  Chart1.AddSeries(TLineSeries).FillSampleValues;

  with Chart1.Tools.Add(TSeriesBandTool) as TSeriesBandTool do
  begin
    Series:=Chart1[0];
    Series2:=Chart1[1];
  end;

  Chart1[1].Active:=False;
end;