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

Glossary Item Box

TypeButtonPicture Property


See Also    DLL    Example 1    Example 2

Applies To

fpSpread control

Description

Sets or returns the picture displayed when a button is up. This property is available at run time only.

Syntax

C++

CPicture CSpreadSheet::GetTypeButtonPicture( );
void CSpreadSheet::SetTypeButtonPicture(LPDISPATCH value);

Visual Basic

[form.]fpSpread.TypeButtonPicture[ = picture]

Remarks

You can specify a bitmap or an icon as the picture to display.

Text, pictures, or both can appear within a button. If you use both, use the TypeButtonAlign property to specify positioning. Pictures do not overlap the shadow and highlight in the button drawn by the control.

To use the TypeButtonPicture 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.

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

Use the TypeButtonPictureDown property to specify the picture to display when the button is down.

Spread Designer

Choose the Cell menu, the Cell Type menu, the Button menu, and then the Settings tab, and then select Picture Up from the drop-down list box and then use the command buttons in the Picture group box in the Cell Type Settings dialog box.

Data Type

Picture

See Also

Displaying Pictures in a Button Cell

CellType, Col, Row, Sheet, TypeButtonAlign, TypeButtonPictureDown, TypeButtonShadowSize, TypeButtonText, TypeButtonType properties

DLL Correspondence

SSSetTypeButton function

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