Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Problem with unicode character entry into TntMemo at Runtime

40 views
Skip to first unread message

norberto

unread,
Nov 23, 2007, 2:13:10 AM11/23/07
to
Hi,

i'm posting this as s new entry since my older topic dealt with tcpServer and
tcpClient.

In a chat application project with 2 TntMemos, one to send unicode characters as
well as one TntMemo to receive unicode characters, i can send and receive
Chinese characters OK as long as i only copy and paste Chinese characters to the
Send TntMemo in my app during runtime.

In the IDE during Design time, i can also type in the Pinyin directly into the
TntMemo's Lines property using the Windows XP Language bar function set to
Chinese Pinyin character input. Pressing the Space bar "registers" the
characters, and the correct characters are entered.

But during Runtime, if i enter the characters into the Send TntMemo using pinyin
input method, the correct characters initially appear but pressing the Space bar
then changes the characters to other (wrong) characters, not the characters i
originally typed in.

Would anyone else know why this is happening and how it can be fixed?

Thanks for any and all help.

Cheers,
norberto

Martin Holmes

unread,
Jan 29, 2008, 8:09:24 PM1/29/08
to
Hi there,

TntForms.pas contains a function called InitTntEnvironment; I have a
feeling you might need to call that function on startup, so that your
application knows all about the system fonts etc.

Sorry if this is a bit vague -- I can't remember the details, but I seem
to remember having to do something like this in one of my apps.

Cheers,
Martin

Olivier Beltrami

unread,
Jun 3, 2008, 3:10:00 AM6/3/08
to
>> But during Runtime, if i enter the characters into the Send TntMemo using
>> pinyin input method, the correct characters initially appear but pressing
>> the Space bar then changes the characters to other (wrong) characters,
>> not the characters i originally typed in.

See my May 28, 2008, reply to the post "How to get Unicode KeyPress?".

Olivier Beltrami
www.qppstudio.net


0 new messages