Spread 8.0 Documentation
SSGetEditMode, SSSetEditMode Functions
Support Options
DLL Reference > DLL Functions > SSGetEditMode, SSSetEditMode Functions

Glossary Item Box

SSGetEditMode, SSSetEditMode Functions


See Also    ActiveX

Applies To

fpSpread DLL control

Description

Set or return whether a cell is in edit mode.

Syntax

C

BOOL SSGetEditMode(HWND hWnd);

BOOL SSSetEditMode(HWND hWnd, BOOL fEditModeOn);

C++

BOOL TSpread::GetEditMode(void);

BOOL TSpread::SetEditMode(BOOL fEditModeOn);

Parameters

The SSGetEditMode function has the following parameter:

Parameter Description
hWnd Window handle of the fpSpread control

The SSSetEditMode function has the following parameters:

Parameter Description
hWnd Window handle of the fpSpread control
fEditModeOn New setting for edit mode

Remarks

This function is applied to the current sheet setting unless you first call the SSSetSheet function to specify the sheet for which you are calling this function.

Edit mode is turned on for a cell when

Edit mode is turned off for a cell when

The edit mode setting indicates whether the user is currently editing the active cell. When edit mode is on, the active cell usually displays a flashing I-beam cursor. When edit mode is off, the active cell usually displays a focus rectangle.

You can specify which cell becomes the active cell when you press the Enter key to leave edit mode using the SSSetEditEnterAction function.

Return Value

SSGetEditMode: TRUE if the sheet is in edit mode; FALSE otherwise.
SSSetEditMode: TRUE if the function completes successfully; FALSE otherwise.

See Also

Using Edit Mode

SSSetSheet function

ActiveX Correspondence

EditMode property

© 2002-2014 ComponentOne, a division of GrapeCity. All Rights Reserved.