how can i fix the axis and chart movement

TeeChart for ActiveX, COM and ASP
Post Reply
Aravind
Newbie
Newbie
Posts: 75
Joined: Fri Nov 15, 2002 12:00 am

how can i fix the axis and chart movement

Post by Aravind » Mon Apr 24, 2006 12:28 pm

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

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

Post by Narcís » Mon Apr 24, 2006 1:39 pm

Hi Aravind,

You can disable TeeChart scrolling and zooming by using:

Code: Select all

    TChart1.Scroll.Enable = pmNone
    TChart1.Zoom.Enable = False
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

Aravind
Newbie
Newbie
Posts: 75
Joined: Fri Nov 15, 2002 12:00 am

still does not work

Post by Aravind » Mon Apr 24, 2006 2:20 pm

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

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

Post by Narcís » Mon Apr 24, 2006 2:32 pm

Hi Aravind,

Ok, add the following line to your code:

Code: Select all

    TChart1.Environment.MouseWheelScroll = False
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

Aravind
Newbie
Newbie
Posts: 75
Joined: Fri Nov 15, 2002 12:00 am

thx for the code it works now

Post by Aravind » Mon Apr 24, 2006 3:07 pm

thx for the code it works now
thx
aravind

Post Reply