Hi,
We are currently using TeeChart Pro Activex Control v7 but encounter a problem.
In teechart, when I slide the mouse wheel, the vertical axis can scroll, right?
Right now, the problem is that I don't want the axis scale to get unlimited value.
Does teechart support the function that the user can set the max/min value that the axis can scroll to?
Please give me some suggestions and many thanks.
axis value scrolls to unlimited value using mouse wheel
-
- Newbie
- Posts: 2
- Joined: Fri Jan 28, 2005 5:00 am
-
- Site Admin
- Posts: 14730
- Joined: Mon Jun 09, 2003 4:00 am
- Location: Banyoles, Catalonia
- Contact:
Hi Combuilder,
You could do something like the code below in the OnAfterDraw event.
You could do something like the code below in the OnAfterDraw event.
Code: Select all
Private Sub TChart1_OnAfterDraw()
If TChart1.Axis.Left.Maximum > 2000 Then
TChart1.Axis.Left.AutomaticMaximum = False
TChart1.Axis.Left.Maximum = 2000
End If
End Sub
Best Regards,
Narcís Calvet / 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 |