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

Glossary Item Box

TypeButtonLightColor Property


See Also    DLL    Example

Applies To

fpSpread control

Description

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

Syntax

C++

unsigned long CSpreadSheet::GetTypeButtonLightColor( );
void CSpreadSheet::SetTypeButtonLightColor(unsigned long value);

Visual Basic

[form.]fpSpread.TypeButtonLightColor[ = color]

Remarks

A button has a border around it with a dark edge, or shadow, on two sides and a light edge, or highlight, on two sides to create a three-dimensional effect. Use the TypeButtonLightColor property to change the color of the highlight.

The default value for the TypeButtonLightColor property depends on your operating environment. For the Windows NT 3.5 environment, the default value is COLOR_BTNHIGHLIGHT. For the Windows 95 or Windows 98 environment or later, the default value is COLOR_3DHILIGHT.

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

The TypeButtonLightColor 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 LightColor in the drop-down list box in the Color group box in the Cell Type Settings dialog box.

Data Type

Color

See Also

Customizing the Three-Dimensional Appearance of Button Cells

CellType, Col, Row, Sheet, TypeButtonBorderColor, TypeButtonColor, TypeButtonDarkColor, TypeButtonShadowSize, TypeButtonTextColor properties

DLL Correspondence

SSSetTypeButton function

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