By joern kunze - 2 Years Ago
|
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:
So how can I switch between zoom and NRangeSelectionMoveResizeTool ?
Thanks for your help, best regards, Joern
|
By Nevron Support - 2 Years Ago
|
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.
|