Profile Picture

Switch between Zoom and RangeSelection Tool

Posted By joern kunze 2 Years Ago
Author
Message
joern kunze
Question Posted 2 Years Ago
View Quick Profile
Junior Member

Junior Member (13 reputation)Junior Member (13 reputation)Junior Member (13 reputation)Junior Member (13 reputation)Junior Member (13 reputation)Junior Member (13 reputation)Junior Member (13 reputation)Junior Member (13 reputation)Junior Member (13 reputation)

Group: Forum Members
Last Active: 2 Years Ago
Posts: 86, Visits: 218
Hi Experts, I have a Chart where I want to have a zoom tool - but which allows the user after some zooming to activate range selection (via extra button) -> then select a range using NRangeSelectionMoveResizeTool -> then save the selected range values -> switch back to zoom mode

I have implemented a zoom tool and the NRangeSelectionMoveResizeTool:
https://www.nevron.com/forum/uploads/images/ac4c5240-ac11-4168-8e92-075b.jpg
So how can I switch between zoom and NRangeSelectionMoveResizeTool ?

Thanks for your help,
best regards,
Joern


Nevron Support
Posted 2 Years Ago
View Quick Profile
Supreme Being

Supreme Being (4,329 reputation)Supreme Being (4,329 reputation)Supreme Being (4,329 reputation)Supreme Being (4,329 reputation)Supreme Being (4,329 reputation)Supreme Being (4,329 reputation)Supreme Being (4,329 reputation)Supreme Being (4,329 reputation)Supreme Being (4,329 reputation)

Group: Forum Members
Last Active: Last Year
Posts: 3,039, Visits: 3,746
Hi Joern,

You can't switch from one tool to another while the first one is still active. You can do so only if this is implemented as a single tool. In general the event handling mechanism in the chart is as follows:

1. The control dispatches the mouse event to all tools in the collection (in the order they appear there). If a tool wants to become active (for example a drag tool like the range selection) it cancels the event and then becomes the active tool. 
2. After a tool is activated all other tools do not receive mouse events
3. When the tool deactivates the whole process starts again from 1. 

We hope this helps - let us know if you have any questions or meet any problems with the implementation.

Best Regards,
Nevron Support Team





Similar Topics


Reading This Topic