Click Event on Bottom Title

TeeChart for Microsoft Visual Studio .NET, Xamarin Studio (Android, iOS & Forms) & Monodevelop.
Post Reply
amol
Advanced
Posts: 231
Joined: Tue Mar 29, 2005 5:00 am

Click Event on Bottom Title

Post by amol » Fri Nov 14, 2014 12:07 pm

Hi Steema Support,

Is it possible to show message box on clicking Title of the axis. As shown in attached image.
please provide any solution for the same, it is very helpful to us.
Image2.png
Image
Image2.png (50.29 KiB) Viewed 12113 times
Thanks in advance.

Thanks&Regards
PlanoResearch

Christopher
Guru
Posts: 1603
Joined: Fri Nov 15, 2002 12:00 am

Re: Click Event on Bottom Title

Post by Christopher » Mon Nov 17, 2014 10:12 am

Hello,

You can use:

Code: Select all

    private void InitializeChart()
    {
      tChart1.MouseDown += tChart1_MouseDown;
      tChart1.Series.Add(typeof(Bar)).FillSampleValues();

      tChart1.Axes.Bottom.Title.Text = "bottom axes";
    }

    void tChart1_MouseDown(object sender, MouseEventArgs e)
    {
      if (tChart1.Axes.Bottom.Title.Clicked(e.X, e.Y))
      {
        MessageBox.Show("Title Clicked");
      }
    }
Best Regards,
Christopher Ireland / Development & Support
Steema Software
Avinguda Montilivi 33, 17003 Girona, Catalonia
Tel: 34 972 218 797
http://www.steema.com
Instructions - How to post in this forum

amol
Advanced
Posts: 231
Joined: Tue Mar 29, 2005 5:00 am

Re: Click Event on Bottom Title

Post by amol » Wed Nov 19, 2014 11:15 am

Hi Christopher,

Thanks for your reply.
When we use your given code
if (tChart1.Axes.Bottom.Title.Clicked(e.X, e.Y))
{
MessageBox.Show("Title Clicked");
}
then it show error message that "Steema.Teechart.AxisTitle does not contain a definition for Clicked". Is this issue is related to my teechart version that we are using?
We are using Teechart version 4.1.2011.4191.
Please provide any solution for the same.

Thanks&Regards
PlanoResearch

Christopher
Guru
Posts: 1603
Joined: Fri Nov 15, 2002 12:00 am

Re: Click Event on Bottom Title

Post by Christopher » Wed Nov 19, 2014 11:28 am

amol wrote: then it show error message that "Steema.Teechart.AxisTitle does not contain a definition for Clicked". Is this issue is related to my teechart version that we are using?
We are using Teechart version 4.1.2011.4191.
Yes, you are using an old version of TeeChart which does not contain this property.
amol wrote: Please provide any solution for the same.
The solution is to upgrade to the latest version, which you can do here.
Best Regards,
Christopher Ireland / Development & Support
Steema Software
Avinguda Montilivi 33, 17003 Girona, Catalonia
Tel: 34 972 218 797
http://www.steema.com
Instructions - How to post in this forum

amol
Advanced
Posts: 231
Joined: Tue Mar 29, 2005 5:00 am

Re: Click Event on Bottom Title

Post by amol » Wed Nov 19, 2014 12:41 pm

Hi Steema Support,

As per your suggestion we have ugraded to Techart version 4.1.2012.5103. But still we did not get tChart1.Axes.Bottom.Title.Clicked(e.X, e.Y) property.
Please tell us in which version we get property.

Thanks& Regards
PlanoResearch

Christopher
Guru
Posts: 1603
Joined: Fri Nov 15, 2002 12:00 am

Re: Click Event on Bottom Title

Post by Christopher » Thu Dec 08, 2016 7:53 am

amol wrote:As per your suggestion we have ugraded to Techart version 4.1.2012.5103. But still we did not get tChart1.Axes.Bottom.Title.Clicked(e.X, e.Y) property.
Please tell us in which version we get property.
My suggestion was to upgrade to the latest version, which is version 4.1.2014.08120.

This ticket for this issue is id=377 and was closed on 2013-11-29 and was added to the version 4.1.2014.02240.


Last bumped by 9526439 on Thu Dec 08, 2016 7:53 am.
Best Regards,
Christopher Ireland / Development & Support
Steema Software
Avinguda Montilivi 33, 17003 Girona, Catalonia
Tel: 34 972 218 797
http://www.steema.com
Instructions - How to post in this forum

Post Reply