Spread 8.0 Documentation
EditMode Event
Support Options
ActiveX Reference > ActiveX Events > EditMode Event

Glossary Item Box

EditMode Event


See Also

Applies To

fpSpread control

Description

Occurs when the user enters or leaves edit mode in a cell.

Syntax

C++

afx_msg void OnEditModefpSpread(UINT, int, CWnd*, LPVOID);

Visual Basic

Sub fpSpread_EditMode(ByVal Col As Long, ByVal Row As Long, ByVal Mode As Integer, ByVal ChangeMade As Boolean)

Parameters

The following parameters are available:

Parameter Description
Col Column number of active cell
Row Row number of active cell
Mode Either of the following:
Mode Value Description
0 Edit mode is off
(User pressed Enter key, another cell was activated, or the application lost the focus.)
1 Edit mode is on
(User started typing in the cell or double-clicked the cell, or the EditMode property was set to True.)
ChangeMade If edit mode is off and this value is True, the user changed the text in the active cell

Remarks

If the OperationMode property is set to 2 (Row Mode), when the user enters edit mode the EditMode event occurs and then the EnterRow event occurs.

Use the SheetSendingEvent property if you want to return the sheet for which this event occured.

See Also

Using Edit Mode

EditEnterAction, EditMode, EditModePermanent, EditModeReplace, SheetSendingEvent properties

EditChange, EditError, EnterRow events

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