CTIsReservedKey Event
Applies To
fpSpread control
Description
Occurs when a key is pressed in a custom cell before the cell is in edit mode.
Syntax
C++
afx_msg void OnCTIsReservedKeyfpSpread(LPCTSTRName, const VARIANT FAR& RendererControl,short Sheet, longCol, longRow, short KeyCode,short Shift,BOOL FAR* IsReserved);
Visual Basic
Sub fpSpread_CTIsReservedKey(ByVal Name As String, ByVal RendererControl As Variant, ByVal Sheet As IntegerByVal Col As Long, ByVal Row As Long, ByVal KeyCodeAs Integer, ByVal Shift As Integer, IsReserved AsBoolean)
Parameters
The following parameters are available:
Parameter | Description |
---|---|
Name | Name of the custom cell type |
RendererControl | Renderer control to use for editing the cell |
Sheet | Sheet number of the custom cell |
Col | Column number of the custom cell |
Row | Row number of the custom cell |
KeyCode | Key code of the key |
Shift | Shift key |
Remarks
The default is that all keys except the escape key will invoke edit mode.
See Also
SheetSendingEvent property
SS_CT_ISRESERVEDKEY_ARGS structure
CTCancelEditing events