Search found 4 matches

by marekjed
Sun Sep 18, 2011 6:14 pm
Forum: Support
Topic: Loading Unicode string in Delphi XE
Replies: 1
Views: 10097

Solved: TStringStream must be created with TEncoding.Unicode as second parameter to the constructot, otherwise an ANSI stream gets created.
by marekjed
Sun Sep 18, 2011 6:08 pm
Forum: Support
Topic: Loading Unicode string in Delphi XE
Replies: 1
Views: 10097

Loading Unicode string in Delphi XE

I apologize for the beginner's question. I've read "How to make plain text editor" and "How to make Unicode editor" in the Examples forum. Using RichViewEdit in plain text mode, I'm using LoadTextFromStreamW to load a string (UnicodeString) into the editor. The result is garbled text (e.g. Chinese ...
by marekjed
Sat Nov 05, 2005 1:51 am
Forum: Support
Topic: Very basic questions
Replies: 3
Views: 18987

Thanks a lot, Sergey and Michel. This was exactly what I needed.

.marek
by marekjed
Thu Nov 03, 2005 11:28 pm
Forum: Support
Topic: Very basic questions
Replies: 3
Views: 18987

Very basic questions

I''ve looked through the help file but can't find a direct answer to some bqasic questions. I have a small read-only TRichViewEdit with text inserted and cleared programmatically. 1. How can I check if the editor is empty (has no text)? In other words, what's the equivalent of TMemo.Lines.Count=0 ...