jacobslusser / ScintillaNET

A Windows Forms control, wrapper, and bindings for the Scintilla text editor.
MIT License
963 stars 243 forks source link

Scintilla Control causes caret in other controls to jump/bug #531

Open MaxBGitHub opened 1 year ago

MaxBGitHub commented 1 year ago

After starting a Form with one or more Scintilla controls, the Scintilla control causes the caret of other controls to jump. ScintillaNet_CaretIssue

If you click into the Scintilla control and then into a different control, the caret does not jump around. One workaround is to set the CaretPeriod to 0, after that, no caret jumps around. Another workaround is not show the caret at all within the Scintilla control.

Is this a known issue and if so, are there other workarounds or fixes? Do I have to change a property or do something after the parent Form is shown?

The jumping caret actually happens as soon as the Scintilla control is instantiated. While designing controls in Visual Studio, on a Form that uses the control, the text boxes within the Properties tab also have this issue. It is no limited to runtime.

chswin commented 1 year ago

I have the same issue... using .net 7