1
Vote

MouseClick events after V2.52 not raised

description

When I upgraded the ScintillaNET assembly from 2.52 to 2.60 the method Scintilla1.MouseClick handler does receive the mouse click anymore.
To recreate the issue I created an new Windows Form project with a Scintilla control in the middle of the form.

Added 3 methods to Form1 Class
    Public Sub New()

        ' This call is required by the designer.
        InitializeComponent()

        ' Add any initialization after the InitializeComponent() call.
                
    End Sub

    Private Sub Form1_MouseClick(sender As Object, e As EventArgs) Handles MyBase.MouseClick
        Debug.WriteLine("Form1_MouseClick")
    End Sub

     Private Sub Scintilla1_MouseClick(sender As Object, e As MouseEventArgs) Handles Scintilla1.MouseClick
        Debug.WriteLine("Scintilla1_MouseClick")
    End Sub
 End Class
When the reference was set the version 2.5.2.0 - Runtime Version v2.0.50727 both event were recordered as shown in de Immediate window by clicking first next to Scintilla Text Control and thereafter on the control.
Form1_MouseClick
Scintilla1_MouseClick
When the reference set to the Windows Forms Scintilla Text Editor Control version Version 2.6.0.0 runtime time version v2.0.50727 the same procedure results only in
Form1_MouseClick
Did I overlook something (my bug) or is the event not raised in ScintillaNET v2.6.0.0?

comments

BodoWitcha wrote Dec 19, 2014 at 11:08 AM

I found a solution for the issue of my project. The MouseDown event triggers correctly.