Page 1 of 1

mouse's wheel using

Posted: Fri Jun 24, 2005 12:09 am
by 9526928
If I use mouse's wheel to move the chart time after time, I can't enforce
the chart come back original condition. How I can enforce the chart get back original condition promptly? Or forbit using mouse's wheel?

Posted: Tue Jun 28, 2005 3:05 pm
by narcis
Hi Gong,

You can just use SetMinMax to go back to the original situation doing something like:

Code: Select all

    With TChart1.Series(0)
        TChart1.Axis.Bottom.SetMinMax .XValues.Minimum, .XValues.Maximum
        TChart1.Axis.Left.SetMinMax .YValues.Minimum, .YValues.Maximum
    End With