Page 1 of 1

how can i fix the axis and chart movement

Posted: Mon Apr 24, 2006 12:28 pm
by 6925851
after drawing the chart when i click on the chart , axis is moving and even the bar/entire chart we can move around , i want to disable this feature ofmoving axis or chart ...

how can i do this ? pls help

regards
aravind

Posted: Mon Apr 24, 2006 1:39 pm
by narcis
Hi Aravind,

You can disable TeeChart scrolling and zooming by using:

Code: Select all

    TChart1.Scroll.Enable = pmNone
    TChart1.Zoom.Enable = False

still does not work

Posted: Mon Apr 24, 2006 2:20 pm
by 6925851
i have put ur line of code in the form and tested still chart is moving , i have scrollmouse and when i scroll the mouse wheel the chart ismoving

wat to do ...?????

aravind

Posted: Mon Apr 24, 2006 2:32 pm
by narcis
Hi Aravind,

Ok, add the following line to your code:

Code: Select all

    TChart1.Environment.MouseWheelScroll = False

thx for the code it works now

Posted: Mon Apr 24, 2006 3:07 pm
by 6925851
thx for the code it works now
thx
aravind