Axis title clicked?

TeeChart for Microsoft Visual Studio .NET, Xamarin Studio (Android, iOS & Forms) & Monodevelop.
Post Reply
Chris.CHWU
Newbie
Newbie
Posts: 57
Joined: Wed Jan 30, 2008 12:00 am

Axis title clicked?

Post by Chris.CHWU » Tue Dec 23, 2008 9:31 am

Hello!!

I want to check the chart title click.
The chart title (Header / Footer / SubHeader / Footer ) all can check .
I write the code as follow as:

TChart.Header.Clicked(e.X, e.Y) = True
TChart.Footer.Clicked(e.X, e.Y) = True


But I want to check axis title was clicked,
i can't find axis (Left axis / Right axis / Top axis /Bottom) was "clicked"
how can i check it in .net?



TChart.Axes.?


Plz help me , thanks

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

Post by Narcís » Tue Dec 23, 2008 9:59 am

Hi Chris.CHWU,

I'm afraid this is not possible for now. I'll add your request to the wish-list to be considered for inclusion in future releases.
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

Charles Cruden
Newbie
Newbie
Posts: 9
Joined: Wed Nov 18, 2009 12:00 am

Re: Axis title clicked?

Post by Charles Cruden » Thu Jan 07, 2010 6:54 pm

I'm trying to accomplish the same thing using TChart .NET 4.0.2009.35592. I don't see a ClickAxisTitle event for TChart and the ClickAxis / ClickTitle don't appear to isolate axis titles. I hoped maybe I'd be able to intercept the mouse click events and work out whether they were over an axis title by comparing the click point to the axis title's location, but at the moment the AxisTitle members don't indicate a location anywhere. (All the position member variables for TextShape such as Left, Right, Top, Bottom, ShapeBounds or even Size are all 0.) Is this possible yet with the version of TChart I'm using, or will it have to wait some more?

Yeray
Site Admin
Site Admin
Posts: 9587
Joined: Tue Dec 05, 2006 12:00 am
Location: Girona, Catalonia
Contact:

Re: Axis title clicked?

Post by Yeray » Fri Jan 08, 2010 4:47 pm

Hi Charles,

I've been playing with this and I've found that for the Top and Bottom axes you can check the following at MouseClick event:

Code: Select all

if (tChart1.Axes.Bottom.Title.ShapeBounds.Contains(e.Location)) this.Text = "Bottom Axis title clicked!!!";
But for the Left and Bottom axes this doesn't work because they are vertical so I'm afraid you should wait until the ticket that Narcis opened (TF02013669) will be implemented. I've incremented it's priority.
Best Regards,
ImageYeray Alonso
Development & Support
Steema Software
Av. Montilivi 33, 17003 Girona, Catalonia (SP)
Image Image Image Image Image Image Please read our Bug Fixing Policy

Post Reply