trichview.support
Re: Bug in InsertText with cr+lf |
Author |
Message |
Dirk Bozza |
Posted: 08/01/2002 13:05:48 Thanks for quick help, it works!!! "Sergey Tkachenko" <[email protected]> wrote: >Oh, > >About "eating" text by inserting empty text with line break: this is a very >very stupid bug. >Find in RVERVData.pas >procedure TRVEditRVData.Do_Concate(FirstItemNo: Integer); > >and change the first statement to > if ((rvioUnicode in GetItemOptions(FirstItemNo))<> > (rvioUnicode in GetItemOptions(FirstItemNo+1))) and > (Items[FirstItemNo+1]<>'') then begin >(i.e. add extra parentheses) > >And yes, Unicode version of InsertText has problems with single "\n" >separator. >Use "\r" - it should work correctly after the fix above. >(I've fixed single "\n" issueand I'll upload fix on the next update). > >> Hi Sergey, >> >> if I use >> >> RichViewEdit1 -> InsertTextW("\n", FALSE); >> >> I see an special char like a litle quader. >> Help...... >> >> >> "Sergey Tkachenko" <[email protected]> wrote: >> >Hi, >> > >> >Use "\n" without "\r" >> > >> >> Hi, >> >> >> >> I have found a bug in the InsertTextW function. >> >> >> >> RichViewEdit1 -> InsertText("test",FALSE); >> >> RichViewEdit1 -> InsertText("\r\n",FALSE); >> >> >> >> In this example the second line delete the text "test". If I insert an >> >space >> >> before the \r\n it works. >> >> >> >> RichViewEdit1 -> InsertText("test",FALSE); >> >> RichViewEdit1 -> InsertText(" \r\n",FALSE); >> >> >> >> Does anyone have an idea how to insert a linebreak without deleting the >> >text >> >> before??? >> >> >> >> Thanks, >> >> Dirk Bozza >> >> >> >> >> > >> > >> > > |
Powered by ABC Amber Outlook Express Converter