Page 1 of 1

Click Event on Bottom Title

Posted: Fri Nov 14, 2014 12:07 pm
by 9526439
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 11948 times
Thanks in advance.

Thanks&Regards
PlanoResearch

Re: Click Event on Bottom Title

Posted: Mon Nov 17, 2014 10:12 am
by Christopher
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");
      }
    }

Re: Click Event on Bottom Title

Posted: Wed Nov 19, 2014 11:15 am
by 9526439
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

Re: Click Event on Bottom Title

Posted: Wed Nov 19, 2014 11:28 am
by Christopher
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.

Re: Click Event on Bottom Title

Posted: Wed Nov 19, 2014 12:41 pm
by 9526439
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

Re: Click Event on Bottom Title

Posted: Thu Dec 08, 2016 7:53 am
by Christopher
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.