Hi
I am using AxisScroll in the chart.
Is there any event which is raised when I drag my mouse over the axis. The axis moves automatically but I want to do some thing more when user will drag mouse over the axis.
Is there any way by which I can detect that user is scrolling using AxisScroll.
Regards
- JC
Events available related to AxisScroll
Re: Events available related to AxisScroll
Hello VarUser,
You can do something using Chart events, as next code, where use AxesClick event to detected axes work as you want work:
Could you confirm us if previous code works as you expected?
I hope will helps.
Thanks,
You can do something using Chart events, as next code, where use AxesClick event to detected axes work as you want work:
Code: Select all
private Steema.TeeChart.Styles.Bar bar1;
private Steema.TeeChart.Tools.AxisScroll axisScroll1;
void InitializeChart()
{
bar1 = new Steema.TeeChart.Styles.Bar(tChart1.Chart);
bar1.FillSampleValues();
axisScroll1 = new Steema.TeeChart.Tools.AxisScroll(tChart1.Chart);
tChart1.ClickAxis += new MouseEventHandler(tChart1_ClickAxis);
}
void tChart1_ClickAxis(object sender, MouseEventArgs e)
{
if (tChart1.Axes.Bottom == sender)
{
axisScroll1.Active = true;
}
else
{
axisScroll1.Active = false;
}
}
I hope will helps.
Thanks,
Best Regards,
Sandra Pazos / 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: Events available related to AxisScroll
Hi Sandra
Thanks for your reply.
One related query.
We have handled tChart.Zoomed event and when we use AxisScroll to scroll the data, this event handler for Zoomed is un-necessarily getting called.
This means that even when we scroll the data(using AxisScroll) zoomed event is raised. Is there any way to get rid of this.
Regards
- JC
Thanks for your reply.
One related query.
We have handled tChart.Zoomed event and when we use AxisScroll to scroll the data, this event handler for Zoomed is un-necessarily getting called.
This means that even when we scroll the data(using AxisScroll) zoomed event is raised. Is there any way to get rid of this.
Regards
- JC
Re: Events available related to AxisScroll
Hello VarUser,
Could you confirm us if previous code works as you expected?
Thanks,
I have made simple project using Zoomed and Scroll events where respectively disable and enable AxisScroll:We have handled tChart.Zoomed event and when we use AxisScroll to scroll the data, this event handler for Zoomed is un-necessarily getting called.
This means that even when we scroll the data(using AxisScroll) zoomed event is raised. Is there any way to get rid of this.
Code: Select all
private Steema.TeeChart.Styles.Bar bar1;
private Steema.TeeChart.Tools.AxisScroll axisScroll1;
void InitializeChart()
{
bar1 = new Steema.TeeChart.Styles.Bar(tChart1.Chart);
bar1.FillSampleValues();
axisScroll1 = new Steema.TeeChart.Tools.AxisScroll(tChart1.Chart);
tChart1.Scroll += new EventHandler(tChart1_Scroll);
tChart1.Zoomed += new EventHandler(tChart1_Zoomed);
}
void tChart1_Zoomed(object sender, EventArgs e)
{
axisScroll1.Active = false;
}
void tChart1_Scroll(object sender, EventArgs e)
{
axisScroll1.Active = true;
}
Thanks,
Best Regards,
Sandra Pazos / 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: Events available related to AxisScroll
Thanks for the reply
Regards
- JC
Regards
- JC