CTIsReservedLocation Event
Applies To
fpSpread control
Description
Occurs when the mouse is moved over or clicked in a custom cell.
Syntax
afx_msg void OnCTIsReservedLocationfpSpread(LPCTSTRName, const VARIANT FAR& RendererControl,short Sheet, long Col, long Row, long x, long y,long CellLeft,long CellTop,long CellRight, long CellBottom,LPUNKNOWN Appearance, const VARIANT FAR& Value,long FAR* ReservedCursorId);
Sub fpSpread_CTIsReservedLocation(ByVal Name As String, ByVal RendererControl As Variant, ByVal Sheet As Integer,ByVal Col As Long, ByVal Row As Long, ByVal x AsSingle, ByVal y As Single, ByVal CellLeft As Single,ByVal CellTop As Single, ByVal CellRight As Single, ByVal CellBottom As Single, ByVal Appearance As FPSpreadADO.CTAppearance, ByVal Value As Variant, ReservedCursorId As Long)
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 containing the custom cell |
Col | Column number of the cell containing the custom cell |
Row | Row number of the cell containing the custom cell |
x | Mouse pointer location |
y | Mouse pointer location |
CellLeft | Left coordinate for the cell |
CellTop | Top coordinate for the cell |
CellRight | Right coordinate for the cell |
CellBottom | Bottom coordinate for the cell |
Appearance | Appearance settings for the cell (use the CTAppearance properties) |
Value | Value in the cell |
ReservedCursortId | Reserved cursor id (0 for none) |
Remarks
This event determines whether edit mode should start on a single click instead of a double click of the left mouse button.
The cell rectangle uses scale mode for the form containing the Spread control (if it supports the ScaleMode property). Otherwise, the cell rectangle uses pixels.
See Also
SheetSendingEvent property
SS_CT_ISRESERVEDLOCATION_ARGS structure
CTCancelEditing events