trichview.com

trichview.support




Re: RichViewEdit1.SearchText


Return to index


Author

Message

bojung

Posted: 04/04/2002 6:30:02


Result


{$IFNDEF RVDONOTUSEUNICODE}

if rvioUnicode in ItemOptions then

  s2 := RVU_UnicodeToAnsi(GetDefaultCodePage, s2);

{$ENDIF}


English --> Search

Korean  --> s2 := '' (NUll)



"Sergey Tkachenko" <[email protected]> wrote:

>Last version is 1.6.23, but 1.6.21 should be OK.

>

>Please open CRVFData.pas, find implementation of

>TCustomRVFormattedData.SearchText.

>In this function, find statements converting text from RichView from Unicode

>to ANSI

>(they are easy to find because they are enclosed in {$IFNDEF

>RVDONOTUSEUNICODE} ... {$ENDIF})

>There are should be 3 such statements.

>Set breakpoints on them.

>Is text converted correctly?

>

>>

>> I'm using version 1.6.21.

>>

>> what is the lastest version?

>>

>> "Sergey Tkachenko" <[email protected]> wrote:

>> >Please upgrade to the latest version.

>> >I am not sure about a version number from which SearchText searches in

>> >Unicode text.

>> >Yes, RVStyle.DefCodePage is important in this case, because RichView

>> >internally converts Unicode text using this code page before comparing

>with

>> >sought string.

>> >

>> >> I am using Korean.

>> >>

>> >> RVStyle1.DefCodePage:=949ANSI/OEM-Korean(Unified Hangeul code) ;

>> >> RVStyle1.DefUnicodeStyle:=11;

>> >>

>> >> But To SearchTextfunction is not embodied exactly.

>> >> What is problem?

>> >>

>> >>

>> >>

>> >

>> >

>>

>

>





Powered by ABC Amber Outlook Express Converter