Enrico
Enrico

Reputation: 2037

Select points in a ZedGraph graph by dragging the mouse

I would like to select points on my curve by dragging a square with my mouse. Of course I can build this myself, but I was wondering if it can be done easier?

Upvotes: 7

Views: 3827

Answers (1)

Gacek
Gacek

Reputation: 10312

Unfortunately not. You would have to do it by yourself. ZG doesn't provide any more sophisticated tools for interaction.

You would probably need to subscribe for "mouse down" and "mouse up" events, perform the reverse transform of found points and then find all points in range (i.e. by searching inside the Points collection of your curve(s)).

Just remember, that the action you described is by default connected width zooming and you would have to disable it.

Upvotes: 8

Related Questions