but is it possible to have NT8 refresh/OnRender while the user clicks + drags instead of after the user unclicks?
I am trying to implement vertical scroll without having to use the CTRL button like I am able in NT7. MessageBox's do appear before I unclick so the code does keep running on the MouseMove event but the chart is stagnant. I have even tried ForceRefresh but to no avail.
Thank you.
Code:
protected override void OnRender(ChartControl chartControl, ChartScale chartScale)
{
chartControl.MouseMove += new System.Windows.Input.MouseEventHandler((sender,e) => mouse_drag(sender,e,chartScale));
}
void mouse_drag(object sender, System.Windows.Input.MouseEventArgs e,ChartScale chartScale)
{
if (e.LeftButton == MouseButtonState.Pressed)
{
chartScale.Properties.FixedScaleMax = chartScale.Properties.FixedScaleMax + .005;
OnRender(ChartControl, chartScale);
}
}
Comment