Getting <Ctrl> + Mouse Wheel events?

SyntaxEditor for Windows Forms Forum

Posted 11 years ago by Paul Fuller
Avatar
Is there a way to receive mouse wheel events and also to know if either <Ctrl> key is held down at the same time? If so I'd like to handle the event myself. Otherwise let the default processing operate.

I have a request to implement font scaling as in Firefox / IE.

Thanks.

[Modified at 11/17/2008 11:34 PM]

Comments (3)

Posted 11 years ago by Actipro Software Support - Cleveland, OH, USA
Avatar
Hi Paul,

You could handle the MouseWheel event and just check Control.ModifierKeys for the current Ctrl state.


Actipro Software Support

Posted 11 years ago by Paul Fuller
Avatar
Funny thing, I looked for MouseWheel event in the Documentation.chm and in the events tab for the SyntaxEditor control in VS2008. Didn't see it.

Yet Intellisense shows it.

FYI the events tab does show:

MouseCaptureChanged
MouseClick
MouseDoubleClick
MouseDown
MouseEnter
MouseHover
MouseLeave
MouseMove

So maybe the event is not tagged properly to appear in the VS2008 events list for the control. I can understand if it is not in Documentation.chm since it is probably just inherited from Control ?
Posted 11 years ago by Actipro Software Support - Cleveland, OH, USA
Avatar
Hi Paul,

I don't think we modify that event signature from Control so I would think it should work and show up ok.


Actipro Software Support

The latest build of this product (v2018.1 build 0341) was released 6 months ago, which was after the last post in this thread.

Add Comment

Please log in to a validated account to post comments.