Re: [WIN] RE: Win32lib: setting cursor in RichEdit

new topic     » goto parent     » topic index » view thread      » older message » newer message

Oh, I didn't know about all those EM_ ers.

I've also just thought about puting the text in originally as setText and
then using setIndex( RE,{n,n}) and setFont to color it. The big hit would
only be at load time. Then as the user works, I would have the cursor
position as reference and replacing text would be easy. Do you think your
method will be better in the long run?

Thanks,
Judith


On Fri, 13 Oct 2000 16:26:35 -0700, Matthew Lewis <MatthewL at KAPCOUSA.COM>
wrote:


>Actually, I was thinking more like just pulling out just the text that's
>been edited (last word or line).  You could keep track of what line is
being
>edited (EM_LINEINDEX, EM_CHARFROMPOS, EM_LINEFROMCHAR should all be
useful),

>Matt Lewis

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu