TypeButtonColor Property
Applies To
fpSpread control
Description
Sets or returns the background color of a button cell. This property is available at run time only.
Syntax
unsigned long CSpreadSheet::GetTypeButtonColor( );
void CSpreadSheet::SetTypeButtonColor(unsigned long value);
[form.]fpSpread.TypeButtonColor[ = color]
Remarks
The default value for the TypeButtonColor property depends on your operating environment. For the Windows NT 3.5 environment, the default value is COLOR_BTNFACE. For the Windows 95 or Windows 98 environment or later, the default value is COLOR_3DFACE.
To use the TypeButtonColor property, specify the sheet with which you want to work by setting the Sheet property. Then specify the cell or cells to which to apply the property, as described in Using Column and Row Properties. Once you set the TypeButtonColor property for a cell or cells, any subsequent button cells you create will use the same TypeButtonColor setting unless you reset it for those cells.
The TypeButtonColor property does not have an effect unless the CellType property is set to 7 (Button) for the specified cell or cells.
Spread Designer
Choose the Cell menu, the Cell Type menu, the Button menu, and then the Settings tab, and then select ButtonColor in the drop-down list box in the Color group box in the Cell Type Settings dialog box.
Data Type
Color
See Also
Setting Background and Text Colors of Button Cells
CellType, Col, Row, Sheet, TypeButtonBorderColor, TypeButtonDarkColor, TypeButtonLightColor, TypeButtonTextColor properties
DLL Correspondence
SSSetTypeButton function