Spread 8.0 Documentation
TypeButtonBorderColor Property
Support Options
ActiveX Reference > ActiveX Properties > TypeButtonBorderColor Property

Glossary Item Box

TypeButtonBorderColor Property


See Also    DLL    Example

Applies To

fpSpread control

Description

Sets or returns the border color of a button cell. This property is available at run time only.

Syntax

C++

unsigned long CSpreadSheet::GetTypeButtonBorderColor( );
void CSpreadSheet::SetTypeButtonBorderColor(unsigned long value);

Visual Basic

[form.]fpSpread.TypeButtonBorderColor[ = color]

Remarks

The default value for the TypeButtonBorderColor property is &H00000000& (black).

If you use the TypeButtonBorderColor property to retrieve the border color for a block of cells that do not all have the same border color, the border color of the active cell is returned.

To use the TypeButtonBorderColor 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 TypeButtonBorderColor property for a cell or cells, any subsequent button cells you create will use the same TypeButtonBorderColor setting unless you reset it for those cells.

The TypeButtonBorderColor property does not have an effect unless the CellType property is set to 7 (Button) for the specified cell or cells.

Note: The TypeButtonBorderColor property has an effect only in Windows NT 3.5 (pre–Windows 95 operating systems). The button border appearance varies according to your operating system. In a pre–Windows 95 operating system, the button has a simple three-dimensional shading and a border. In Windows 95, Windows 98, or Windows NT 4.0 or later, the button has a complex three-dimensional shading and no border. Hence the TypeButtonBorderColor property has no effect in these environments.

Spread Designer

Choose the Cell menu, the Cell Type menu, the Button menu, and then the Settings tab, and then select BorderColor in the drop-down list box in the Color group box in the Cell Type Settings dialog box.

Data Type

Color

See Also

Setting the Border Color for Button Cells
Customizing the Three-Dimensional Appearance of Button Cells

CellType, Col, Row, Sheet, TypeButtonColor, TypeButtonDarkColor, TypeButtonLightColor, TypeButtonTextColor properties

DLL Correspondence

SSSetTypeButton function

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