New Post: ScintillaNET crashing on AppendText
I found the problem! So I have a loop to set up fonts in the ScintillaNET control. I call this before calling the AppendText loop. This is the function:public static void UpdateScintillaFonts(Scintilla...
View ArticleNew Post: ScintillaNET crashing on AppendText
Ya that's interesting. The exception you're getting suggests memory corruption. My recollection is that system fonts (DefaultFont) are not meant to be disposed. It's possible that Scintilla is...
View ArticleNew Post: ScintillaNET crashing on AppendText
Could be... I'm noticing that if I change fonts to the Styles more than once or twice I seem to get the crash again, even if I'm not using DefaultFont anymore. It seems like the Scintilla control can...
View ArticleNew Post: ScintillaNET crashing on AppendText
Wrote a solution here but it doesn't work... hahaha so I took it out.
View ArticleNew Post: Is there a way to set a style without getting range?
I've noticed that GetRange performs more slowly when it gets text closer to the end of the ScintillaNET control. This becomes a problem if the text is constantly increasing in size. Is there any way to...
View ArticleNew Post: How do you delete text in a ScintillaNET?
I tried using the recommended method: scintilla.GetRange(0, nTrimLength).Text = ""; But it doesn't seem to do anything. How do I delete?
View ArticleNew Post: Is there a way to set a style without getting range?
Answered my own question - turns out GetRange isn't the problem. I was doing a scintilla.Text.Length each time I was calling GetRange. The .Length was actually causing the performance decrease, not...
View ArticleNew Post: How do you delete text in a ScintillaNET?
Ok I figured this one out too. Combination of weird behavior and a bug. scintilla.GetRange(0, nTrimLength).Text = ""; does delete the text, but NOT if the ReadOnly attribute is true. BUT, when you call...
View ArticleNew Post: Is there a way to set a style without getting range?
The TextLength property will get you the length of the document without having to create a string object first. Be advised that this is the byte length, not character length... as has been explained...
View ArticleNew Post: How do you delete text in a ScintillaNET?
Actually, everything you just described is working "as designed". The ReadOnly property will prevent any updates to the document--even programmatic updates. In that respect it is a bit different from...
View ArticleNew Post: How do you delete text in a ScintillaNET?
Ok, yeah that's strange... I would think you'd want to see the text replaced, not the length of the text you wanted to use to replace... I mean you have that already because it got passed into the...
View ArticleNew Post: Is there a way to set a style without getting range?
Oh ok, interesting, I could probably work with that. Thanks.
View ArticleNew Post: Text Coloring
Hi I am trying to Color the text. when I select text I can get the text to change color, but as soon as I click somewhere else its gone. I want to be able to keep the coloring, But i dont need to be...
View ArticleNew Post: Custom Lexer
I know this subject comes up often and I've referred to the WPF branch as instructed in previous posts. I am using the ScintillaNET.dll from the WPF branch, so it includes the Custom Lexer framework...
View ArticleNew Post: Custom Lexer
Update to this: Was able to bypass the error by ensuring "LexerName" attribute was in the <Lexer> element of the Language config...not sure why that was needed. Still doesn't appear to be using...
View ArticleNew Post: Custom Lexer
Another update for everyone, I don't give up easily. I found that when a ScintillaNET instance is loaded the following method gets called from the "Custom Lexer Registration" section.static...
View ArticleNew Post: BUG: scintilla.CurrentPos and scintilla.Caret.Position bugged
Positioning in TextBox Control
View ArticleNew Post: Text Coloring
Sounds like you're fighting against a lexer. A lexer's job is to basically detect when the text has changed (or window is painted) and update the color accordingly. If you've accidentally (or...
View ArticleNew Post: How make CallTips
The code below will enable "dwelling" and show the current mouse position as a calltip when the mouse is held in place for 0.5 seconds:scintilla.NativeInterface.SetMouseDwellTime(500);private void...
View Article