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 » detecting character key presses inside a CExtGridCellString Collapse All
Subject Author Date
Darren Oliver Jan 26, 2007 - 11:39 AM

Dear Support,

I have a CExtGridCellString inside a CExtGridWnd and I would like write each character pressed into another edit control.

I haven’t been able to find a sample and it seems CExtGridWnd::OnGbwAnalyzeCellKeyEvent is called only if I don’t double click on the cell to begin editing. Is there a method which I can override everytime a key is pressed or as an alternative when the user has finished entering in text inside the CExtGridCellString.

Thanks,
Darren

Suhai Gyorgy Jan 29, 2007 - 1:34 AM

There are two overridable methods of CExtGridWnd which you could use: OnGridCellInplaceControlWindowProc (I think this first one would be better), or OnGridCellInplaceControlTextInputVerify. Check Help file for further information.