Pre loader

Move the RolloverModifier with the Keyboard / Mouse Left Button Down

Welcome to the SciChart Forums!

  • Please read our Question Asking Guidelines for how to format a good question
  • Some reputation is required to post answers. Get up-voted to avoid the spam filter!
  • We welcome community answers and upvotes. Every Q&A improves SciChart for everyone

WPF Forums | JavaScript Forums | Android Forums | iOS Forums

0
0

I only want to move the RolloverModifier if the left mouse button is pressed and with Left and Right Keys?

  • You must to post comments
1
0

Hi Daniel,

I’m afraid we don’t support moving the rollover line by key-press, but we do have a rich Custom ChartModifier API where you can create or customise your own ChartModifiers.

I recommend having a look at Custom ChartModifiers – Part 1 – Creating a Custom Rollover Modifier as well as the second part of this article Zooming In / Out on Key Presses as this may give some inspiration.

Alternatively, you may find it better to use our built in VerticalSliceModifier to display a ‘rollover line’ and then subscribe to key presses on the parent window to move it (update its position) instead of use a Rollover line.

Hope this helps. If you find a good solution, please post it below so it can help others!

Best regards,
Andrew

  • Daniel Hartl
    Thanks, but i'm not able to trigger any event of the sciChart or ChartModifier. Is the Chart focusable?? If yes, how can i trigger GotFocus,etc..
  • Andrew Burnett-Thompson
    Hi Daniel, it's a known issue that the chart cannot accept Key events. We have it in our backlog. For now, I'd suggest taking a look at the Zooming In / Out on Keypresses sample above, which subscribes to events in the parent window
  • You must to post comments
Showing 1 result
Your Answer

Please first to submit.