Mouse wheel scrolls chart although AllowPanning=pmNone

TeeChart VCL for Borland/CodeGear/Embarcadero RAD Studio, Delphi and C++ Builder.
Post Reply
Joschi
Newbie
Newbie
Posts: 26
Joined: Mon Oct 27, 2003 5:00 am
Location: Germany
Contact:

Mouse wheel scrolls chart although AllowPanning=pmNone

Post by Joschi » Mon Jun 25, 2007 8:29 am

I have a horizontal bar chart, and although I have set the AllowPanning property of the chart to pmNone, it is possible to scroll this chart using the mouse wheel.

Shouldn't turn pmNone the scrolling off completely?

Best regards

Joachim

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 Jun 25, 2007 9:08 am

Hi Joachim,

You can try what was suggested here.

Thanks in advance.
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

Joschi
Newbie
Newbie
Posts: 26
Joined: Mon Oct 27, 2003 5:00 am
Location: Germany
Contact:

Post by Joschi » Tue Jun 26, 2007 4:01 pm

Dear Narcis.

1. Setting TeeUseMouseWheel to False does not seem to chnage anything.

2. I would like that only those bar charts cannot be scrolled that fit on one page. But TeeUseMouseWheel seems to be a global variable and would so affect *all* charts.

3. Why did setting the AllowPanning property to pmNone not have the intended behaviour?

Best regards,

Joachim

Pep
Site Admin
Site Admin
Posts: 3299
Joined: Fri Nov 14, 2003 5:00 am
Contact:

Post by Pep » Mon Jul 02, 2007 11:03 am

Hi Joachim,
1. Setting TeeUseMouseWheel to False does not seem to chnage anything.
Setting this global property to False you shouldn't be able to scroll over it.
I've test it here. In case you still able to scroll it , please send me a simple app with which I can see the problem here (you can send me it directly to peo@steema.com).
2. I would like that only those bar charts cannot be scrolled that fit on one page. But TeeUseMouseWheel seems to be a global variable and would so affect *all* charts.
Yes, you're correct, as wheel mouses appear later than the first TeeChart Pro version, they are not controlled setting the AllowPanning property to False.
But, what you say is a good feature that we'll consider for the next TeeChart Pro releases (allow to specify to which Chart should affect the TeeUseMouseWheel).
For the moment a workaround would be to lock the Chart axis by using the SetMinMax property.
3. Why did setting the AllowPanning property to pmNone not have the intended behaviour?
Explained in the previous question.

Joschi
Newbie
Newbie
Posts: 26
Joined: Mon Oct 27, 2003 5:00 am
Location: Germany
Contact:

Post by Joschi » Mon Jul 02, 2007 12:01 pm

Mouse wheels exist for at least 10 years now. Even if TChart V1.0 was there a few month before the mouse wheel, I don't see a reason why Steema was unable in the past 10 years to handle this in a proper way if AllowPanning is pmNone.

Post Reply