10053 : How can I implement this behavior: moving mouse with left button down on TimeItemArea (not just DateScaler) will move the datescaler?

Question

 
how can I implement this behavior: moving mouse with left button down on TimeItemArea (not just DateScaler) will move the datescaler?

 
Answer
. You can implement OnTimeItemAreaMouseMove and check that Gantt.MouseMoveKind==MouseMoveKind.none (so that you not break any other mouse action) and track how much the mouse has moved (Get the original position in the OnTimeItemAreaMouseDown event). When you have the shift of pixels (x-direction) you can use this in the PlexityHide.GTP.DateScaler.Pan(pixels) method.
 
 

Leave a Reply