Re: RichEdit and Win32lib v0.57.11 onwards

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

Actually, the better way to clear the text would be this ...
 
   -- Select all the text.
   setIndex(RE, {1,0}) 
   -- Replace the selected text with the new stuff.
   putStream(RE, flag, NewText) 


In fact, what I might do is allow an additional flag value thus ...

   putStream(RE, {StreamRTF, ClearText}, NewText) 

that will automatically clear the existing text first.


19/09/2002 12:58:03 PM, g.haberek at comcast.net wrote:

>
>i say yes, we can just call setText( id, "" ) prior to putStream(), right?
>
>
>
>
---------
Cheers,
Derek Parnell 
ICQ# 7647806

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

Search



Quick Links

User menu

Not signed in.

Misc Menu