Click on AxisLabel or AxisTitle

TeeChart for Microsoft Visual Studio .NET, Xamarin Studio (Android, iOS & Forms) & Monodevelop.
Post Reply
Jeff
Newbie
Newbie
Posts: 22
Joined: Thu Nov 30, 2006 12:00 am

Click on AxisLabel or AxisTitle

Post by Jeff » Fri Mar 23, 2007 11:39 pm

Dear TeeChart Support:

I would like my program to respond to the user's clicking on an AxisLabel or AxisTitle. However, as far as I understand, no event is fired under this condition. I wonder if you can recommend a quick solution?

Thanks.

Jeff

Narcís
Site Admin
Site Admin
Posts: 14730
Joined: Mon Jun 09, 2003 4:00 am
Location: Banyoles, Catalonia
Contact:

Post by Narcís » Mon Mar 26, 2007 8:15 am

Hi Jeff,

For labels you can use its Clicked method like shown below. However, this method is not implemented for title. I'll add it to our wish-list to be considered for inclusion in future releases.

Code: Select all

		private void tChart1_MouseDown(object sender, MouseEventArgs e)
		{
			if (tChart1.Axes.Bottom.Labels.Clicked(e.X, e.Y) != -1)
			{
			}
		}
Best Regards,
Narcís Calvet / Development & Support
Steema Software
Avinguda Montilivi 33, 17003 Girona, Catalonia
Tel: 34 972 218 797
http://www.steema.com
Image Image Image Image Image Image
Instructions - How to post in this forum

Post Reply