|
-
Oct 7th, 2006, 03:54 PM
#1
Thread Starter
Frenzied Member
[2005] NPlot - If you know how to use it ...please help!
Hello there,
I am using Nplot at the moment, all is fine and well but I am trying to capture the co ordinates of where the user clicks on the graph.
I can see the co ordinates when i float over the graph, but i cant seem to find the class which shows the co ordinate in a little tooltip by the mouse cursor.
ANyone help ???
CHeers
If you find my thread helpful, please remember to rate me 
-
Oct 7th, 2006, 05:53 PM
#2
Re: [2005] NPlot - If you know how to use it ...please help!
If that functionality has been declared Friend ('internal' in C#, which was probably the development language) then you won't be able to see it. I've never used NPlot but if it involves placing a control on your form then you should be able to use the members of the Control class. All the mouse-related events of the Control class give you cursor coordinates. As a last resort you can use the Cursor.Position property to get the cursor location in screen coordinates and then use the PointToClient method of the appropriate control to get that point in relation to that control.
-
Jan 7th, 2012, 03:45 PM
#3
Lively Member
Re: [2005] NPlot - If you know how to use it ...please help!
This may come a bit late (and is in C#):
Code:
MouseEventArgs eA = (MouseEventArgs)e;
// Calculate data value
Point here = new Point(eA.X, eA.Y);
double x = this.plotFull.PhysicalXAxis1Cache.PhysicalToWorld(here, true);
double y = this.plotFull.PhysicalYAxis1Cache.PhysicalToWorld(here, true);
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|