nedich / txquery

Automatically exported from code.google.com/p/txquery
Other
2 stars 2 forks source link

Text unreadable in richedit components in demo application #2

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Start the application as it is now
2. Look at the richedit contents

You'll get error messages that the line cannot be inserted into the 
richedit too.

What is the expected output? What do you see instead?
I expected syntax highlighted text. I see raw richedit code with blocks 
instead.

What version of the product are you using? On what operating system?
I'm using version 2.0 (r7).

Please provide any additional information below.

As a quick fix, modify function strToRichEdit() in SyntaxHi.pas on line 266 
from:
      aMem.Write( Pointer(S)^, Length(S) );
to:
      aMem.Write( Pointer( AnsiString(S) )^, Length( AnsiString(S) ) );

Original issue reported on code.google.com by SuperNiFF@gmail.com on 4 Dec 2009 at 5:26