Page 1 of 1

Disable MouseWheel - vertical scrolling of gantt

Posted: Wed Aug 13, 2008 8:23 am
by 9531657
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

Posted: Wed Aug 13, 2008 8:36 am
by yeray
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.

Posted: Wed Aug 13, 2008 8:48 am
by 9531657
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...

Posted: Thu Aug 14, 2008 8:13 am
by Pep
Hi Rover,

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