trichview.support
Re: Letter color changes when I start typing at the end of a textline... |
Author |
Message |
Pieter E. |
Posted: 11/25/2004 16:48:50 Dear Sergey, I found the problem. I use the following code: void __fastcall TForm1::RichViewEdit1KeyDown(TObject *Sender, WORD &Key, TShiftState Shift) { if(Key == VK_SPACE || Key == VK_RETURN) { // url detection DetectURL(RichViewEdit1, URLScanEvent, true); // closing url if necessary TerminateHyperlink(RichViewEdit1, URLScanEvent); } } //--------------------------------------------------------------- The problem is in the "TerminateHyperlink(RichViewEdit1, URLScanEvent);". When I remove this line, the text doesn't turn black anymore, but the RichViewEdit doesn't recognize hyperlinks anymore. I think that the "TerminateHyperlink" returns the default font color after recognizing hyperlinks, even when there are no hyperlinks. Could you give some advice?? Thanks. Pieter E. "Sergey Tkachenko" <svt@trichview.com> wrote: >May be you have some events where you change the current text style? >Or may be your grey text style has rvprDoNotAutoSwitch in the Protection >property? >If not, please send me a project reproducing this problem. > >> >> Dear Sergey, >> >> I type some text in a RichViewEdit (for example 5 lines). I select all the >> text and make the text grey, give it a size of 10pt and the letter type >‘Arial’. >> Everything works correct. >> >> But when I set the cursor at the end of line 3 and start typing again and >> hit space, the colour of the font is changed to black. The font size and >> font family are still the same and aren’t changed. >> >> Do you have a solution?? >> >> Thanks. >> >> Pieter E. >> > > |
Powered by ABC Amber Outlook Express Converter