Disable MouseWheel - vertical scrolling of gantt

TeeChart for ActiveX, COM and ASP
Post Reply
Rover
Newbie
Newbie
Posts: 12
Joined: Thu Jun 22, 2006 12:00 am

Disable MouseWheel - vertical scrolling of gantt

Post by Rover » Wed Aug 13, 2008 8:23 am

The vertical scrolling of our gantt chart is driving us nuts...
The only solution by now is the onafterdraw event where we reset the axis min/max. The repaint method does not work the way it should. That means the correct axis values are set but the chart keeps scrolling. this leaves a scrolled chart with correct min/max values which are applied the the on-screen representation when the user clicks on a task.

Please help!

Kind regards,

Jan

Yeray
Site Admin
Site Admin
Posts: 9552
Joined: Tue Dec 05, 2006 12:00 am
Location: Girona, Catalonia
Contact:

Post by Yeray » Wed Aug 13, 2008 8:36 am

Hi Jan,

I'm afraid I don't understand what are you doing here. Could you explain the steps to reproduce it here?

Thanks in advance.
Best Regards,
ImageYeray Alonso
Development & Support
Steema Software
Av. Montilivi 33, 17003 Girona, Catalonia (SP)
Image Image Image Image Image Image Please read our Bug Fixing Policy

Rover
Newbie
Newbie
Posts: 12
Joined: Thu Jun 22, 2006 12:00 am

Post by Rover » Wed Aug 13, 2008 8:48 am

We have a gantt chart which is used for production planning. I want to make shure that it can only be scrolled horizontally. At the moment whenever I accidentally touch the mouse wheel the chart scrolls vertically, so some production lines are off-screen.

All I want to to is to disable vertical scrolling via mouse-wheel...

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

Post by Pep » Thu Aug 14, 2008 8:13 am

Hi Rover,

you can disable it by using :
TChart1.Environment.MouseWheelScroll = False

Post Reply