|
Change Scrolling Directions |
Posted by slaniwani on Feb-10-2011 20:43 |
|
Hi, another problem with the zoom - scroll - demonstration.
Usually, when you select the "Pointer" and click on the Chart and move the mouse to the left side, you get more data on the right side.
How can I change the direction?
I want to click on the Chart and move the Mouse to the right and get the data what this window is expected to show me.
Thanks |
Re: Change Scrolling Directions |
Posted by Peter Kwan on Feb-11-2011 03:05 |
|
Hi slaniwani,
The "drag to scroll" behaviour of ChartDirector is the standard behaviour. When you click on the contents and and drag to the left, the contents scroll to the right. This is the same as Yahoo Finance, Google Finance, Adobe PDF and many other software. (In fact, I am not aware of any software doing it in the opposite way.)
I have not tried myself, but I think if you want to interpret the user actions in the opposite way, you may consider to interpret the view port positions in the opposite way. For example, instead of treating the "ViewPortLeft" to mean the left edge of the view port, you may treat is to mean the right edge. For example, you would need to change the formulas on how to determine the start date and end date based on the view port size and positions, and change how the view port is initialized, etc..
Regards
Peter Kwan |
Re: Change Scrolling Directions |
Posted by slaniwani on Feb-11-2011 16:27 |
|
Thanks but I decided to use it like its working right now.
It sounds a little bit to complicated and its working fine as it is. |
|