By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
435,166 Members | 1,130 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 435,166 IT Pros & Developers. It's quick & easy.

Highlighter RichTextBox control

P: n/a
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

Apr 7 '06 #1
Share this Question
Share on Google+
2 Replies


P: n/a
Good work, Ludwig! Wish I had the time to try it out, but I'm swamped at the
moment. It sounds like you've got a solid Control there, though.

--
HTH,

Kevin Spencer
Microsoft MVP
Professional Numbskull

Show me your certification without works,
and I'll show my certification
*by* my works.

"Ludwig" <no**@none.com> wrote in message
news:93********************************@4ax.com...
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

Apr 7 '06 #2

P: n/a
On Fri, 07 Apr 2006 12:40:44 +0200, Ludwig <no**@none.com> wrote:
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


I forgot to ask my question :)

if a huge file is loaded (or pasted), it is parsed completely; but
this takes a very long time, especially the updating of the text in de
richtextbox takes forever for large amounts of texts.

Any suggestions on how to solve this?
Apr 7 '06 #3

This discussion thread is closed

Replies have been disabled for this discussion.