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 1950

Summary: Bar series Clicked method not working for bars of 1 pixel width
Product: .NET TeeChart Reporter: christopher ireland <chris>
Component: SeriesAssignee: Steema Issue Manager <issuemanager>
Status: RESOLVED FIXED    
Severity: regression    
Priority: ---    
Version: unspecified   
Target Milestone: ---   
Hardware: PC   
OS: Windows   
Chart Series: --- Delphi / C++ Builder RAD IDE Version:

Description christopher ireland 2017-11-27 09:49:49 EST
Code to reproduce:

    Bar series;
    private void InitializeChart()
    {
      tChart1.Aspect.View3D = false;
      series = new Bar(tChart1.Chart);

      series.FillSampleValues(10);
      series.Marks.Visible = false;
      series.Pen.Visible = false;

      series.CustomBarWidth = 1;
      
      tChart1.MouseMove += TChart1_MouseMove;
    }


    private void TChart1_MouseMove(object sender, MouseEventArgs e)
    {
      int index = series.Clicked(e.X, e.Y);

      tChart1.Header.Text = index > -1 ? "Bar CLICKED index: " + index : "Bar NOT clicked";
    }