Hey
my chart have context menu strip (opens when right clicking)
i can also pan (scroll) in the chart by holding the right key and dragging.
the problem is:
when im panning, the context menu is also opening
how can i solve this? i dont want the context menu to open when panning.
Note: WPF, but using the WinForms version
Panning with ContextMenuStrip
Re: Panning with ContextMenuStrip
Hello,
There are some options to control the panning (scroll), examples here below, including changing the mousebutton used for Panning:
Regards,
Marc Meumann
There are some options to control the panning (scroll), examples here below, including changing the mousebutton used for Panning:
Code: Select all
//add extra key control to enable panning
tChart1.Panning.KeyShift = Steema.TeeChart.Drawing.Keys.Shift;
// swap keys for scroll and zoom and deactivates zoom. (so right key free)
tChart1.Panning.MouseButton = Steema.TeeChart.Drawing.MouseButtons.Left;
tChart1.Zoom.MouseButton = Steema.TeeChart.Drawing.MouseButtons.Right;
tChart1.Zoom.Direction = Steema.TeeChart.ZoomDirections.None;
Marc Meumann
Steema Support