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

Glossary Item Box

CTInitializeControl Event


See Also

Applies To

fpSpread control

Description

Occurs when a custom cell should initialize the editor or renderer control prior to editing.

Syntax

C++

afx_msg void OnCTInitializeControlfpSpread(LPCTSTRName, const VARIANT FAR& Ctrl,short Sheet, longCol, longRow, LPUNKNOWNAppearance);

Visual Basic

Sub fpSpread_CTInitializeControl(ByVal Name As String, ByVal Ctrl As Variant, ByVal Sheet As IntegerByVal Col As Long, ByVal Row As Long, ByVal AppearanceAs FPSpreadADO.CTAppearance)

Parameters

The following parameters are available:

Parameter Description
Name Name of the custom cell type
Ctrl Control to initialize
Sheet Sheet number of the custom cell
Col Column number of the custom cell
Row Row number of the custom cell
Appearance Appearance settings to apply to the editor

Remarks

The Spread control does not use this event. This event is only needed if you wish to initialize something prior to editing or renderering the cell.

Note: Ctrl is the EditorControl or RendererControl previously returned by the CTCreateEditorControl or CTCreateRendererControl events. If you are using a window class name as the name of your custom cell and letting the Spread control handle creating the control for you, it is the window handle of the control that Spread created.

See Also

SheetSendingEvent property

SS_CT_INITIALIZECONTROL_ARGS structure

CTCancelEditing events

Copyright © GrapeCity, inc. All rights reserved.