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.
Thanks in advance.
Thanks&Regards
PlanoResearch
Click Event on Bottom Title
-
- Guru
- Posts: 1603
- Joined: Fri Nov 15, 2002 12:00 am
Re: Click Event on Bottom Title
Hello,
You can use:
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 |
Re: Click Event on Bottom Title
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
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
-
- Guru
- Posts: 1603
- Joined: Fri Nov 15, 2002 12:00 am
Re: Click Event on Bottom Title
Yes, you are using an old version of TeeChart which does not contain this property.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.
The solution is to upgrade to the latest version, which you can do here.amol wrote: Please provide any solution for the same.
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 |
Re: Click Event on Bottom Title
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
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
-
- Guru
- Posts: 1603
- Joined: Fri Nov 15, 2002 12:00 am
Re: Click Event on Bottom Title
My suggestion was to upgrade to the latest version, which is version 4.1.2014.08120.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.
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 |