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: 3 Months Ago
Posts: 86, Visits: 221
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,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)

Group: Forum Members
Last Active: Last Week
Posts: 3,054, Visits: 4,009
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