Reset Offset after using NOffsetTool


Author
Message
Alexander Haberl
Alexander Haberl
Forum Newbie (8 reputation)Forum Newbie (8 reputation)Forum Newbie (8 reputation)Forum Newbie (8 reputation)Forum Newbie (8 reputation)Forum Newbie (8 reputation)Forum Newbie (8 reputation)Forum Newbie (8 reputation)Forum Newbie (8 reputation)
Group: Forum Members
Posts: 15, Visits: 48
Hi!

I'm allowing the user to move the chart around with the help of a NOffsetTool:

NOffsetTool ot = new NOffsetTool();
ot.BeginDragMouseCommand = new NMouseCommand(MouseAction.Down, System.Windows.Forms.MouseButtons.Right, 1);
ot.EndDragMouseCommand = new NMouseCommand(MouseAction.Up, System.Windows.Forms.MouseButtons.Right, 1);
chartControl.Controller.Tools.Add(ot);

Now I want to reset the offset by clicking on a button. Can this be done? I already tried:

chartControl.Charts[0].Offset(chartControl.View.Context, new NPointL(x, y));

but of course I dont no the values for x and y.

Please help!

Thanks a lot!

GO

Merge Selected

Merge into selected topic...



Merge into merge target...



Merge into a specific topic ID...





Similar Topics

Reading This Topic

Login

Explore
Messages
Mentions
Search