Cursor Min/Max Value?


Author
Message
Teddy Lambropoulos
Teddy Lambropoulos
Junior Member (20 reputation)Junior Member (20 reputation)Junior Member (20 reputation)Junior Member (20 reputation)Junior Member (20 reputation)Junior Member (20 reputation)Junior Member (20 reputation)Junior Member (20 reputation)Junior Member (20 reputation)
Group: Forum Members
Posts: 20, Visits: 1

Hi all,

I have a question regarding data cursors on an axis. I have a set of 4 cursors on my NChart. There are two on the X Axis and two on the Y Axis. The cursors move by a mouse move event. When I move these cursors I am constantly updating a text box with the value of the cursor. I noticed that even if I drag my mouse/cursor off of the NChart the text box is still updating which means the cursor is still moving somewhere "off" the NChart where I can not see it. I want to be able to set a maximum and minimum value for where the cursor can travel on each axis. I do not want the cursors to get "lost" off of the chart anywhere. Is there a simple way to do this?

If I was not clear and you need me to describe my situation in more detail I can.


Nevron Support
Nevron Support
Supreme Being (4.5K reputation)Supreme Being (4.5K reputation)Supreme Being (4.5K reputation)Supreme Being (4.5K reputation)Supreme Being (4.5K reputation)Supreme Being (4.5K reputation)Supreme Being (4.5K reputation)Supreme Being (4.5K reputation)Supreme Being (4.5K reputation)
Group: Administrators
Posts: 3.1K, Visits: 4.1K

Hi Teddy,

Yes - you can apply a value snapper to the cursor:

someCursor.ValueSnapper = new NAxisRulerClampSnapper();

the Interactivity\Tools\Data Cursor Tool example also shows how different snappers work (you can snap to major / minor ticks, min max value and ruler range).



Best Regards,
Nevron Support Team


GO

Merge Selected

Merge into selected topic...



Merge into merge target...



Merge into a specific topic ID...




Similar Topics

Reading This Topic
1 active, 1 guest, 0 members, 0 anonymous
No members currently viewing this topic!

Login

Explore
Messages
Mentions
Search