Home » U++ Library support » RichText,QTF,RTF... » Scrollable log window with colour text
Scrollable log window with colour text [message #2539] |
Mon, 17 April 2006 08:38 |
lundman
Messages: 175 Registered: March 2006 Location: Tokyo
|
Experienced Member |
|
|
Rather than thread-jacking my old... thread.. I thought I would start afresh on this question.
If you imagine a FTP client, I want a window where I can throw the log output, and other garbage returned from the other end, into and have it scroll as it fills up. But I would like to be able to have colour text so I can do an ANSI->QTF convert.
I have been trying RichTextView, which seems to be the simplest of the Rich text categories, but I have having some issues.
[1]
The only way so far to add another line of text at the "bottom" is to re-assign the entire contents.
p = ~p + str;
[2]
Automatically scroll so latest line is in view. So far this has not been possible with RichTextView, but, I found that if I tag on "[:END:]&" to my text, I can use GotoLabel("END", false). Yeah, not pretty.
Is there no better way? It would be nicer to use something like DocEdit with its .Insert() and SetCursor() but it doesn't do colour text.
I tried RichEdit as suggested, but found it had the same issues as mentioned here.
Advice please, production stopped here
|
|
|
Goto Forum:
Current Time: Thu Oct 31 23:47:13 CET 2024
Total time taken to generate the page: 0.02159 seconds
|