Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
540
Zooming an Panning a Gantt-chart using the mouse
posted

 Hi,

sorry to be almost "spamming" but we need some answers pretty soon ... Is there a way to zoom using the mouse and when in zoom (so not scale 1) implement the right-click in a manner that panning becomes possible ?

If so, could you give some tips (or working code :-) ) to get this done ?

 

Thanks,

 

Wim

Parents
No Data
Reply
  • 410
    Offline posted

    Hi

    I need to change the color of the box while mouse is drawing on the chart.

    Dim xAxis As IAdvanceAxis = DirectCast(e.Grid("X"), IAdvanceAxis)

    Dim yAxis As IAdvanceAxis = DirectCast(e.Grid("Y"), IAdvanceAxis)

    Dim width As Integer = Math.Abs(m_endPoint.X - m_startPoint.X)

    Dim height As Integer = Math.Abs(m_endPoint.Y - m_startPoint.Y)

    Dim box As New Primitives.Box(m_startPoint, width, height)

    Thanks

Children
No Data