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

Glossary Item Box

CTStartEditing Event


See Also

Applies To

fpSpread control

Description

Occurs when a custom cell should start editing.

Syntax

C++

afx_msg void OnCTStartEditingfpSpread(LPCTSTRName, const VARIANT FAR& EditorControl,short Sheet, long Col, long Row, long Msg, long wParam,long lParam, BOOL SelectAll, BOOL AutoClipboard, BOOL FAR* Handled);

Visual Basic

Sub fpSpread_CTStartEditing(ByVal Name As String, ByVal EditorControl As Variant, ByVal Sheet As Integer,ByVal Col As Long, ByVal Row As Long, ByVal Msg AsLong, ByVal wParam As Long, , ByVal lParam As Long,ByVal SelectAll As Boolean, ByVal AutoClipboard AsBoolean, Handled As Boolean)

Parameters

The following parameters are available:

Parameter Description
Name Name of the custom cell type
EditorControl Editor 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
Msg Windows message being processed to invoke edit mode
wParam Varies depending on the specific message
lParam Varies depending on the specific message
SelectAll True to select the contents of the cell
AutoClipboard True if the editor should handle the clipboard keys
Handled True to cancel the default processing

Remarks

This event allows you to set conditions for editing. If Handled is False, then the Spread control will attempt to do this for you. The Spread control will use wParam and lParam in this case.

By default if the message is a mouse message, the Spread control will check to see if the message should be sent to a child window (for example, a scroll bar) and send the message to that window when appropriate.

Note: The window message invoking edit mode may be a WM_LBUTTONDOWN or WM_LBUTTONDBLCLK if edit mode was invoked by mouse action, or WM_CHAR if edit mode was invoked by a key press, or none (0) if the EditMode property was set to turn on edit mode

See Also

SheetSendingEvent property

SS_CT_STARTEDITING_ARGS structure

CTCancelEditing events

Copyright © GrapeCity, inc. All rights reserved.