Professional UI Solutions
Site Map   /  Register


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 General Discussion » CExtGridCell __EGCS_READ_ONLY doesn't capture delete key Collapse All
Subject Author Date
Daniel Latimer Oct 14, 2010 - 7:02 AM


I’m having a problem using where when I give a grid cell the __EGCS_READ_ONLY flag it will prevent any keyboard entry except the delete key. I was wondering if this is a known bug, if there is any known work-around etc...

Thanks for your time,


Technical Support Oct 14, 2010 - 12:34 PM

This is fixed in later Prof-UIS versions. All the CExtGridCell***::OnKey() and CExtGridCell***::OnSysKey() methods begin with the following code:

            __EXT_DEBUG_GRID_ASSERT_VALID( (&wndGrid) );
            if( IsInvisible() )
                        return false;
DWORD dwCellStyle = GetStyle();
            if( (dwCellStyle&__EGCS_READ_ONLY) != 0 )
                        return false;
All the CExtGridCell***::OnInplaceControlPreTranslateMessage() methods also perform read only cell state checking. The CExtGridWnd::OnGbwBeginEdit() code method also checks read only cell state and even uses WM_COPY message instead of WM_CUT.