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.
Subject |
Author |
Date |
|
Paul Cowan
|
Oct 17, 2007 - 12:57 PM
|
I would like to be able to change grid cells with the cursor keys, while editing a cell, but not have the new cell go in to edit mode. I’ve tried using __EGWS_BSE_WALK, which when set turns on edit mode in the new cell and when not set disables movement with the cursor keys. How do I enable moving cells with the cursor keys, but not re-enable edit mode?
|
|
Technical Support
|
Oct 22, 2007 - 12:40 PM
|
We are sorry for the delay with this reply. Unfortunately this behavior of focus/editing is not supported explicitly in CExtGridWnd . You can override the CExtGridWnd::OnGridCellInplaceControlWindowProc() virtual method in your CExtGridWnd -derived class to intercept messages of the inplace active cell editor window. This will allow you to receive WM_KEYDOWN messages with wParam set to VK_UP or VK_DOWN . If these keys are pressed, then you should set the WM_CANCELMODE message to the hWndInplaceControl window handle specified in the parameters and set a new focused cell by invoking CExtGridWnd::FocusSet() .
|
|