ButtonClicked Event
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
afx_msg void OnButtonClickedfpSpread(UINT, int, CWnd*, LPVOID);
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