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 447

Summary: ColorLine draw out of bound Chart when AllowDrag is false
Product: .NET TeeChart Reporter: sandra pazos <sandra>
Component: ToolsAssignee: Steema Issue Manager <issuemanager>
Status: RESOLVED FIXED    
Severity: enhancement CC: chris
Priority: ---    
Version: TeeChart.NET 2013 4.1.2013.11080   
Target Milestone: ---   
Hardware: PC   
OS: Windows   
Chart Series: --- Delphi / C++ Builder RAD IDE Version:

Description sandra pazos 2013-11-21 04:00:38 EST
When you there is a ColorLine tool in a Chart with AllowDrag property to false, if you scroll the Chart the ColorLine is drawn out of bounds of Chart.
To reproduce the problem you can use next code: 
   private Steema.TeeChart.Styles.FastLine fast;
        private Steema.TeeChart.Tools.ColorLine colorLine1;
        private void InitializeChart()
        {
          fast = new Steema.TeeChart.Styles.FastLine(tChart1.Chart);
          fast.FillSampleValues();
          colorLine1 = new Steema.TeeChart.Tools.ColorLine(tChart1.Chart);
          colorLine1.Axis = tChart1.Axes.Left;
          colorLine1.Value = fast.YValues[3];        
          //ColorLine Initialization: 
          colorLine1.AllowDrag = false;
          colorLine1.NoLimitDrag = false;
}
The same occurs in VCL version.
Comment 1 sandra pazos 2013-11-21 04:03:27 EST
TeeChartVCL bug number is [id448].