Results 1 to 2 of 2

Thread: Japanese Text and C#

  1. Registered TeamPlayer Imisnew2's Avatar
    Join Date
    01-19-08
    Posts
    4,588
    Post Thanks / Like
    Blog Entries
    9
    #1

    Japanese Text and C#

    I'm trying to write a program so that when the user clicks on the text box (the text box receives focus) it automatically changes the input mode to Japanese - Hiragana.
    I've looked and looked and looked... and all I can find is the InputLanguageManager class, and I can .setInputLanguage(CultureClass.getCultureClass("jp ")) and it seems to do nothing...
    When I print the input mode (.Current) it says it is currently in Japanese input mode, but the text is still English.

    After twiddling around for about 1hr with this, trying various things... I looked into setLocaleInfo(bunch o params). It requires I [DllImport("kernel32.dll")] to declare the function... but I'm stepping into water over my head.
    The basics of what this does is change the "input mode" at the O/S level to JP rather than at application level... But I can't figure this one out.

    So if anyone can help me I'd greatly appreciate it.

  2. Registered TeamPlayer Imisnew2's Avatar
    Join Date
    01-19-08
    Posts
    4,588
    Post Thanks / Like
    Blog Entries
    9
    #2

    Re: Japanese Text and C#

    Found this:

    You need to set different Conversion status flags for Hiragana and katakana.


    For Hiragana set flag as
    IME_CMODE_JAPANESE | IME_CMODE_FULLSHAPE

    Can anyone tell me how to get these constants?

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Title