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 2041

Summary: Arrow series Clicked method not property implemented.
Product: .NET TeeChart Reporter: christopher ireland <chris>
Component: SeriesAssignee: Steema Issue Manager <issuemanager>
Status: RESOLVED FIXED    
Severity: normal    
Priority: ---    
Version: TeeChart for .Net 4.1.2017.10196   
Target Milestone: ---   
Hardware: PC   
OS: Windows   
Chart Series: --- Delphi / C++ Builder RAD IDE Version:

Description christopher ireland 2018-06-13 04:09:04 EDT
The following code shows the lack of implementation of the Arrow Series's Clicked method:

		private Arrow series;
		public Form1()
		{
			InitializeComponent();

			series = new Arrow(tChart1.Chart);
			series.FillSampleValues();
			tChart1.MouseMove += TChart1_MouseMove;
		}

		int oldIndex = -1;
		private void TChart1_MouseMove(object sender, MouseEventArgs e)
		{
			int index = series.Clicked(e.X, e.Y);
			Color oldColor = Utils.EmptyColor;
			if (index > -1)
			{
				oldColor = series[index].Color;
				series[index].Color = Color.Red;
				if (oldIndex > -1)
				{
					series[oldIndex].Color = oldColor;
				}
				oldIndex = index;
			}

			tChart1.Invalidate();
		}