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 - Bar series Clicked method not working for bars of 1 pixel width
Summary: Bar series Clicked method not working for bars of 1 pixel width
Status: RESOLVED FIXED
Alias: None
Product: .NET TeeChart
Classification: Unclassified
Component: Series (show other bugs)
Version: unspecified
Hardware: PC Windows
: --- regression
Target Milestone: ---
Assignee: Steema Issue Manager
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-11-27 09:49 EST by christopher ireland
Modified: 2017-11-27 10:03 EST (History)
0 users

See Also:
Chart Series: ---
Delphi / C++ Builder RAD IDE Version:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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";
    }