SSGetEditEnterAction, SSSetEditEnterAction Functions
Applies To
fpSpread DLL control
Description
Set or return the action that occurs when the user presses the Enter key.
Syntax
WORD SSGetEditEnterAction(HWND hWnd);
WORD SSSetEditEnterAction(HWND hWnd, WORD wAction);
WORD TSpread::GetEditEnterAction(void);
WORD TSpread::SetEditEnterAction(WORD wAction);
Parameters
The SSGetEditEnterAction function has the following parameter:
Parameter | Description |
hWnd | Window handle of the fpSpread control |
The SSSetEditEnterAction function has the following parameters:
Parameter | Description | |
---|---|---|
hWnd | Window handle of the fpSpread control | |
wAction | Action that occurs Use one of the following values: |
|
Constant | Description | |
SS_ENTERACTION_NONE | Enter key processed by dialog box | |
SS_ENTERACTION_UP | Active cell moves up | |
SS_ENTERACTION_DOWN | Active cell moves down | |
SS_ENTERACTION_LEFT | Active cell moves left | |
SS_ENTERACTION_RIGHT | Active cell moves right | |
SS_ENTERACTION_NEXT | Next cell becomes active cell (Active cell moves in the order left to right, top to bottom.) |
|
SS_ENTERACTION_NEXTROW | Active cell moves to first column of next row | |
SS_ENTERACTION_PREV | Previous cell becomes active cell (Active cell moves in the order right to left, bottom to top.) |
|
SS_ENTERACTION_SAME | Current cell remains active cell |
Remarks
This function is applied to the entire workbook, including all sheets in the control.
By default, when the user presses the Enter key, edit mode is turned off and the active cell does not change.
Return Value
SSGetEditEnterAction: One of the values listed for the SSSetEditEnterAction wAction parameter that represents the current action.
SSSetEditEnterAction: Previous value of the wAction parameter.
See Also
Using the Enter Key to Move Between Cells
ActiveX Correspondence
EditEnterAction property