Click here to get back home

Disable T9 input - just straight keyboard input.

 HomeNewsGroups | Search | About
 microsoft.public.smartphone.developer    Post an article   get this group's latest topics as an RSS feed add this group's latest topics to your My MSN content add this group's latest topics to your My Yahoo content
Subject Author Date
Disable T9 input - just straight keyboard input. WM Dev 2001 10-15-2007
Posted by WM Dev 2001 on October 15, 2007, 11:50 am
Please log in for more thread options
Win32 - not .NET. I have a main client window, not a dialog. This
window needs to take keyboard input so this is what I have set:

        HIMC hC;
        switch (uMsg)
        {
        case WM_KILLFOCUS:
                {
                        if (m_bIMEOpened == false)
                                return 0;

                        bHandled = true;
                        DWORD dwRes = ::SendMessage((HWND)wParam, WM_IME_REQUEST,
IMR_ISIMEAWARE, 0);
                        hC = ImmGetContext(m_hWnd);
                        if ((dwRes & IMEAF_AWARE) == IMEAF_AWARE)
                                ImmEscape(NULL, hC, IME_ESC_RETAIN_MODE_ICON, (LPVOID)TRUE);
                        ImmSetOpenStatus(hC, FALSE);
                        //ImmReleaseContext(m_hWnd, hC);
                        m_bIMEOpened = false;
                }
                return 0;
        case WM_SETFOCUS:
                {
                        bHandled = true;
                        hC = ImmGetContext(m_hWnd);
                        ImmSetOpenStatus(hC, TRUE);
                        ImmEscape(NULL, hC, IME_ESC_SET_MODE, (LPVOID)IM_SPELL);
                        //ImmReleaseContext(m_hWnd, hC);
                        m_bIMEOpened = true;
                }
                return 0;
        case WM_IME_REQUEST:
                bHandled = true;
                if (wParam == IMR_ISIMEAWARE)
                        return IMEAF_AWARE;
                else
                        return 0;
        }

On my BlackJack, the emulator, and others this works perfectly. No
issues at all. I get keyboard input just as I want it. On a TMobile
Dash, however, a T9 combo-box comes up. I don't want this.

How do I ensure that the T9 does not come up?


Posted by WM Dev 2001 on October 15, 2007, 6:09 pm
Please log in for more thread options
To clarify one thing - it seems the issue is the xT9 that comes with
the Dash. I believe it doesn't send WM_KEYDOWN messages and instead
just pastes or something. I would like to programmatically turn this
off.


Similar ThreadsPosted
asterisk '*' and '#' in smartphone - keyboard input September 9, 2008, 3:52 pm
Combox int smartphone,how to input value by smartphone's keyboard,but not use Left/Right arrows? December 23, 2005, 8:23 am
Set input mode July 7, 2006, 4:17 pm
IME (Input Method) question? June 22, 2005, 1:15 pm
Numeric input problems October 15, 2005, 9:13 am
Set input mode programmatically June 14, 2007, 6:03 pm
Problem with input mode! June 28, 2007, 1:24 am
Switch input method. June 30, 2008, 10:26 am
Problem with input modus, VS2003 VB.NET December 31, 2005, 2:05 pm
Can You put an EDIT Box in a homescreen Plugin for text input? March 31, 2006, 4:15 am

Our other projects:

Art Dolls, Fairies and Mermaids - Sunnyfaces.net

Roy's Linux, Programming and Search Engines messages

1-Script XML SitemapXML Sitemap