CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 5 of 5
  1. #1
    Join Date
    May 2002
    Posts
    19

    How to change the default IME programatically

    Hi All,
    I need to change the default IME to Japanese.
    So that when a user presses keys in a text box, japanese
    letters will be coming automatically.

    By default english letters will be coming. After we set to MS IME Japanese, then only japanese letters will be coming.

    I am having Japanese m/c.

    Thanks in Advance
    Cherian

  2. #2
    Join Date
    Aug 2002
    Location
    Madrid
    Posts
    4,588
    Actually I'd be interested in this as well.

    I haven't much looked into the specifics, but maybe you can use ImmAssociateContext to set a new IME to the textbox. I'm not sure how exactly this is done though.
    Get this small utility to do basic syntax highlighting in vBulletin forums (like Codeguru) easily.
    Supports C++ and VB out of the box, but can be configured for other languages.

  3. #3
    Join Date
    Sep 2003
    Posts
    2

    Question I too need help on IME settings

    Hi cherian_2002 and Yves M, (sorry I don't know your actual names)

    Is anyone of you able to do this? Actually I have done it to some extent. In my case placing the focus on an edit control that needs Japanese Input, changes the IME bar input script to 'Hiragana' settings. But while inputting the text, character that appears are Katakana. Can u help me?

    With Regards,
    Sandhya

  4. #4
    Join Date
    Sep 2003
    Posts
    18
    Hello Sandhya,
    You need to set different Conversion status flags for Hiragana and katakana.


    For Hiragana set flag as
    IME_CMODE_JAPANESE | IME_CMODE_FULLSHAPE

    For katakana set flag value as
    IME_CMODE_NATIVE | IME_CMODE_KATAKANA


    And in ImmSetConversionStatus() set this flag value


    rgds
    Vinod

  5. #5
    Join Date
    Sep 2003
    Posts
    2

    Thank you for the help

    Hi Vinod,

    Thank you for the information.

    Actually I was not ORing IME_CMODE_FULLSHAPE flag with IME_CMODE_NATIVE. Thanks again.

    With Regards,
    Sandhya

Posting Permissions

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





Click Here to Expand Forum to Full Width

Featured