Re: [WIN] RE: Win32lib: setting cursor in RichEdit
Judith Evans wrote:
> I've played a lot with the RTF codes you have to place in
> front of your data and in front of each group of words that need a
different
> font or color. I got that nicely going, only to discover that getIndex(
RE) is
> not helping me know where in the stream the user is - just where he in on
> control. In other words he might be in position 10 screenwise but
positiong 528
> streamwise. So I haven't found a good method to colorize the data while
the
> user works on it. URGH! Have you had any luck with this? I sure hope I'm
> doing something incorrectly and there is a solution. The first method I
used
> was to color with setIndex/setFont but I didn't like that at all.
What you might try is mixing your streaming methods. the get/setIndex()
routines are looking at the content of the control as normal text, whereas
you're streaming in rich text. For in process colorization, I'd select the
text as normal text, then replace it with a stream of rich text with the
appropriate formatting. I think the difference between the plain text and
rich text is what's complicating matters.
Matt
|
Not Categorized, Please Help
|
|