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 » Tab in Grid Collapse All
Subject Author Date
Christoffer B Aug 22, 2007 - 7:10 AM

Hi,

If I use the tab key, I dont jump to the next cell, but to the next control in the dialog. Is it possible to jump to the next cell in the same grid using the tab key?

Technical Support Aug 22, 2007 - 12:25 PM

The Tab key is not used in the Prof-UIS grids. So, you should override the CExtGridWnd::OnGbwAnalyzeCellKeyEvent() virtual method so you can detect the VK_TAB key pressing event and adjust the focused cell position using the CExtGridWnd::FocusSet() and CExtGridWnd::FocusGet() methods.

Christoffer B Aug 23, 2007 - 1:24 AM

The OnGbwAnalyzeCellKeyEvent() method does not catch the Tab key when the editor of a cell is activated. The tab key is only caught when the Grid has the focus.
Can I avoid overriding all the different types of Cells I have in order to make the tab key work?

Technical Support Aug 23, 2007 - 12:07 PM

The CExtGridWnd class allows you to monitor the window procedure of the inplace activated cell editor control. You should override the CExtGridWnd::OnGridCellInplaceControlWindowProc() virtual method. This will allow you to intercept the WM_KEYDOWN message of the inplace editor window with the WPARAM parameter set to VK_TAB.