L
Ludwig
Hi,
thanks to the insight that Kevin Spencer gave me concerning my regular
expressions question from a few days ago, I managed to create a first
version of my (free) Highlighter RichTextBox control. In short: it
highlights portions of text in specified (fore- and background)colors,
with a specified parser.
I found a number of controls on the net, but all of them had some
problems: mostly performance issues with larger texts and flickering
problems.
Besides the fact that I needed to learn how regular expressions work,
I also needed to find a solution for the performance and flickering
issues.
The performance issues have been solved by only updating the part of
the text that needs to be updated; instead of the whole text. The
flickering issue has been solved by eating paint messages when it is
not needed to repaint the control.
A first version of the control can be downloaded at
http://www.coders-lab.be/mysoftware.html, if someone is intrested.
Always intrested in feedback on how to improve it.
Kind regards,
Ludwig
thanks to the insight that Kevin Spencer gave me concerning my regular
expressions question from a few days ago, I managed to create a first
version of my (free) Highlighter RichTextBox control. In short: it
highlights portions of text in specified (fore- and background)colors,
with a specified parser.
I found a number of controls on the net, but all of them had some
problems: mostly performance issues with larger texts and flickering
problems.
Besides the fact that I needed to learn how regular expressions work,
I also needed to find a solution for the performance and flickering
issues.
The performance issues have been solved by only updating the part of
the text that needs to be updated; instead of the whole text. The
flickering issue has been solved by eating paint messages when it is
not needed to repaint the control.
A first version of the control can be downloaded at
http://www.coders-lab.be/mysoftware.html, if someone is intrested.
Always intrested in feedback on how to improve it.
Kind regards,
Ludwig