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

Glossary Item Box

ButtonClicked Event


See Also

Applies To

fpSpread control

Description

Occurs when the user clicks a button cell or check box cell or a value is set for these cells in code at run time.

Syntax

C++

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

Visual Basic

Sub fpSpread_ButtonClicked(ByVal Col As Long, ByVal Row As Long, ByVal ButtonDown As Integer)

Parameters

The following parameters are available:

Parameter Description
Col Column number of cell the user clicked
Row Row number of cell the user clicked
ButtonDown Value of a two-state button (True or False)
(Parameter is always False if button is not a two-state button.)

Remarks

When the TypeButtonType property is set to 0 (Normal), this event occurs when the user releases the mouse button while the mouse pointer is over the button cell.

When the TypeButtonType property is set to 1 (Two-State), this event occurs when the user presses a mouse button while the mouse pointer is over the button cell. The event also occurs when the user releases the mouse button.

The ButtonDown parameter contains the state of a two-state button. The value is True if the button is down and False if the button is up. The ButtonDown parameter is useful only when the TypeButtonType property is set to 1 (Two-State).

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

See Also

SheetSendingEvent, TypeButtonType properties

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