Professional UI Solutions
Site Map   /  Register
 
 

Forum

Please Log In to post a new message or reply to an existing one. If you are not registered, please register.

NOTE: Some forums may be read-only if you are not currently subscribed to our technical support services.

Forums » Prof-UIS Tech Support » Input of Key Code type characters Collapse All
Subject Author Date
Mike Van Duzee Feb 10, 2009 - 1:05 PM

We had previously reported an issue with the input of key code type character sequences (http://www.prof-uis.com/prof-uis/tech-support/support-forum/prof-control-input-problem-61925.aspx) which you did provide a fix for.  Unfortunately that only appears to fix key codes for the views (and possibly a few other controls) but we are experiencing the same issue with the grid cells.  Currently, there seems to be no support at all for key code entry in the grid cells, no matter what the user types no characters results.

Technical Support Feb 12, 2009 - 3:36 AM

Here are the two steps to fix this issue:

1) Replace the .../Prof-UIS/Src/ExtEdit.cpp and .../Prof-UIS/Include/ExtEdit.h files from the following ZIP file:

http://www.prof-uis.com/download/forums/tmp/Updated_CExtEditBase_285.zip

2) Update the source code for the following method in the .../Prof-UIS/Src/ExtGridWnd.cpp file:

bool CExtGridCell::OnInplaceControlPreTranslateMessage(
            MSG * pMsg,
            HWND hWndInplaceControl,
            CExtGridWnd & wndGrid,
            LONG nVisibleColNo,
            LONG nVisibleRowNo,
            LONG nColNo,
            LONG nRowNo,
            INT nColType,
            INT nRowType,
            const RECT & rcCellExtra,
            const RECT & rcCell,
            const RECT & rcInplaceControl
            )
{
            ASSERT_VALID( this );
            ASSERT( hWndInplaceControl != NULL && ::IsWindow(hWndInplaceControl) );
            ASSERT_VALID( (&wndGrid) );
            if(         wndGrid.OnGridCellInplaceControlPreTranslateMessage(
                                    *this,
                                    pMsg,
                                    hWndInplaceControl,
                                    nVisibleColNo,
                                    nVisibleRowNo,
                                    nColNo,
                                    nRowNo,
                                    nColType,
                                    nRowType,
                                    rcCellExtra,
                                    rcCell,
                                    rcInplaceControl
                                    )
                        )
                        return true;
            if(                     (           pMsg->message == WM_KEYDOWN
                                    ||           pMsg->message == WM_KEYUP
                                    )
                        &&        pMsg->wParam == VK_MENU
                        &&        pMsg->hwnd != CExtEditBase::g_hWndEditInAltKeyCodeMode
                        )
                        return true;
            return false;
}