I am writing a program in which the user needs to type in Russian 
words, using an English keyboard.  I thought I could do this as 
follows:

I use a TRichEdit component.  The user types in a letter of the Roman 
alphabet, and one or other of the RichEdit's keyboard events assigns 
a corresponding character code for a letter in the Cyrillic alphabet 
to the value of the Key parameter, in place of the one passed to it.

I got a version of this method to work for substituting one standard 
ASCII character for another, but I find that it won't work for other 
characters: I just get question marks instead.

I have managed to get almost the behaviour I want, but in a rather 
cumbersome way.  The only way I have come up with to put the 
character I want into the RichEdit is: copy the character out of a 
string stored elsewhere, and paste it to where I want.  There are a 
few disadvantages of this method, such as that it overwrites whatever 
else was on the Clipboard.  I am sure there is a more direct way to 
get non-ASCII characters into a RichEdit, but I can't work out what 
it is.

Any help, anyone?

Michael Davis




------------------------ Yahoo! Groups Sponsor --------------------~--> 
<font face=arial size=-1><a 
href="http://us.ard.yahoo.com/SIG=12ht9ls2j/M=362329.6886308.7839368.1510227/D=groups/S=1705115362:TM/Y=YAHOO/EXP=1123369437/A=2894321/R=0/SIG=11dvsfulr/*http://youthnoise.com/page.php?page_id=1992
">Fair play? Video games influencing politics. Click and talk back!</a>.</font>
--------------------------------------------------------------------~-> 

-----------------------------------------------------
Home page: http://groups.yahoo.com/group/delphi-en/
To unsubscribe: [EMAIL PROTECTED] 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/delphi-en/

<*> To unsubscribe from this group, send an email to:
    [EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 


Reply via email to