axis value scrolls to unlimited value using mouse wheel

TeeChart for ActiveX, COM and ASP
Post Reply
Combuilder
Newbie
Newbie
Posts: 2
Joined: Fri Jan 28, 2005 5:00 am

axis value scrolls to unlimited value using mouse wheel

Post by Combuilder » Wed Sep 12, 2007 2:30 am

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.

Narcís
Site Admin
Site Admin
Posts: 14730
Joined: Mon Jun 09, 2003 4:00 am
Location: Banyoles, Catalonia
Contact:

Post by Narcís » Wed Sep 12, 2007 7:47 am

Hi Combuilder,

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
Image Image Image Image Image Image
Instructions - How to post in this forum

Combuilder
Newbie
Newbie
Posts: 2
Joined: Fri Jan 28, 2005 5:00 am

Post by Combuilder » Wed Sep 12, 2007 8:15 am

thank you! It's helpful.

Post Reply