Skip to content
This repository has been archived by the owner on Dec 22, 2023. It is now read-only.

Support for standard Click, DoubleClick events #15

Closed
brisingraerowing opened this issue May 27, 2015 · 3 comments
Closed

Support for standard Click, DoubleClick events #15

brisingraerowing opened this issue May 27, 2015 · 3 comments

Comments

@brisingraerowing
Copy link
Contributor

Would it be possible to hook into the native Scintilla events and raise the default WinForms events from those?

e.g. SCN_DOUBLECLICK -> DoubleClick event.

Overriding/Adding events to the control would be necessary, as Scintilla has, e.g. SCN_*CLICK events for different items.

@jacobslusser
Copy link
Owner

I added support for DoubleClick (but not MouseDoubleClick because I need to figure out a way to determine the mouse buttons used). Take a look and let me know if this is what you had in mind.

jacobslusser added a commit that referenced this issue May 30, 2015
This also fixes a bug in DoubleClickEventArgs.Position when not a valid
document position.
@jacobslusser
Copy link
Owner

Looking at System.Windows.Forms.TextBoxBase gave me an angle on how to get MouseDoubleClick working as well. All the click events should now be there:

  • Click
  • MouseClick
  • DoubleClick (standard)
  • MouseDoubleClick
  • DoubleClick (Scintilla)

@jacobslusser jacobslusser changed the title About the events Support for standard Click, DoubleClick events May 30, 2015
@brisingraerowing
Copy link
Contributor Author

Looks good to me.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants