ASE Home Page Products Download Purchase Support About ASE
ChartDirector General
Forum HomeForum Home   SearchSearch

Message ListMessage List     Post MessagePost Message

  vertical scrolling in gantt chart
Posted by daniel on Sep-15-2009 14:47
Does anyone know how to implement vertical scrolling for gantt charts?

  Re: vertical scrolling in gantt chart
Posted by Peter Kwan on Sep-15-2009 17:22
Hi Daniel,

The exact method depends on your GUI framework. For example, a web application written using PHP is completely different from a desktop application written using MFC/C++.

In general, you would need to put a scrollbar or some sort of controls (such as up/down buttons) in your GUI to allow the user to scroll. These controls (scrollbars, push buttons, etc) are not related to ChartDirector, but is provided by your GUI framework.

From the controls, your code would need to keep track of which bars are visible. For example, if the control is a scrollbar, your code would need to determine which bars are visible based on the position of the scrollbar. Then your code can redraw the chart (in the scrollbar event handler) by passing on the data that are visible to ChartDirector.

Hope this can help.

Regards
Peter Kwan

  Re: vertical scrolling in gantt chart
Posted by daniel on Sep-16-2009 10:22
thank you for the reply peter, i forgot to mention that i will be doing this in a java desktop application. and i really need this vertical scroll because i have so many tasks to display in the gantt chart.

  Re: vertical scrolling in gantt chart
Posted by Peter Kwan on Sep-16-2009 17:06
Hi Daniel,

There is an example in:

http://www.chartdir.com/forum/download_thread.php?site=chartdir&bn=chartdir_general&thread=1252924887#N1253061243

Hope this can help.

Regards
Peter Kwan