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 » Change default behavior for validating a CExtGridCellString Collapse All
Subject Author Date
Emmanuel V. Mar 19, 2010 - 9:48 AM

Hi,


Default behavior to go next next active cell is by pressing UP or DOWN key (__EGWS_BSE_WALK_VERT is set). When I click on ENTER it only validate current cell (not going to next one : in my case the one bellow current one).


I want to be able to validate current active cell by pressing TAB key, and go automatically to next cell (in my case the one bellow current one). How can I do this ?


On the same way, when pressing ENTER, how going automatically to next cell (in my case the one bellow current one) ?


Thanks.

Technical Support Mar 19, 2010 - 12:15 PM

Here is the code which adds the Tab key based in-row navigation in the grid control:

CExtGridWnd & wndGrid = . . .
wndGrid.m_dwSupportedAccelCommands |= __EGSA_IN_ROW_TAB_NEXT | __EGSA_IN_ROW_TAB_PREV;

Emmanuel V. Mar 22, 2010 - 2:22 AM

It’s OK, thanks.

Emmanuel V. Mar 19, 2010 - 10:22 AM

OK, I had solved one problem : adding __EGWS_BSE_EDIT_RETURN_MOVES_NEXT_ROW style, when pressing ENTER key, next row is automatically selected. How can I have same behavior with TAB key ?


Thanks.