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 - Arrow series Clicked method not property implemented.
Summary: Arrow series Clicked method not property implemented.
Status: RESOLVED FIXED
Alias: None
Product: .NET TeeChart
Classification: Unclassified
Component: Series (show other bugs)
Version: TeeChart for .Net 4.1.2017.10196
Hardware: PC Windows
: --- normal
Target Milestone: ---
Assignee: Steema Issue Manager
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-06-13 04:09 EDT by christopher ireland
Modified: 2018-06-13 04:46 EDT (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 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();
		}