I was wondering if someone knew about a control for .NET that allows me
to display log messages from an application while it is running.
The following things are necessary:
- word-wrap
- clickable hyperlinks (preferrably able to send clicks on these to the
application as an event, but if not I can probably make due)
- images (for showing small glyphs for warnings, errors, etc.)
- formatting (like a few colors (red=error, etc.), bold, etc.)
- manage the scrollbar properly (for instance, if I'm vieweing the last
message, and resize the control, it would redraw to still show the last
message and not keep the topmost line visible after the resize)
The following things is on the nice-to-have list:
- display text coming up from the bottom, not start at the top of the screen
- flicker-free
- allow me to change the text for a line and thus replace the line in
the log (to display progress messages with a running status message)
I've looked at using a richtext control but it has a lot of things I
just need to replace, like the scrollbar handling, positioning of caret
(somehow the scroll-to-caret after positioning the caret at the end
after a resize puts the last line below the bottom of the control).
I thought about using the ActiproSoftware syntaxeditor control but of
course this one needs a syntax parser to handle the formatting, which
means that it reacts to visible text, not to hidden formatting codes.
I also thought about using a web browser control but I've yet to figure
out how to replace parts of the webpage and scroll the page to the new
message.
If anyone knows of such a beast, please give me a few pointers, or even
keywords to put into google as none I've tried seems to give me anything
like it.
--
Lasse Vågsæther Karlsen
http://usinglvkblog.blogspot.com/
mailto:la***@vkarlsen.no
PGP KeyID: 0x2A42A1C2