Spread 8.0 Documentation
DLL
Support Options

Glossary Item Box

DLL


To display a picture in a button cell

  1. Call the SSSetTypeButton function and use the following parameters to specify the picture to display:
    1. Set the Picture parameter to provide the name of the picture to display when the button is not pressed ("up" or False).
    2. Set the nPictureType parameter to tell the control the type of picture to display.
    3. Set the PictureDown parameter to provide the name of the picture to display when the button is pressed ("down" or True).
    4. Set the nPictureDownType parameter to tell the control the type of picture to display.
    5. Set the Style parameter to specify the alignment for the picture in relation to button text.
      The text alignment setting moves the text to whichever side of the picture you specify. For example, if you set the position of the text to be on the left, the button cell displays the text on the left and the picture on the right. If the button cell does not display text, the Style parameter alignment setting has no effect, and the control centers the picture in the cell.
  2. Call the SSSetCellType or SSSetCellTypeRange function and set the CellType parameter to SS_TYPE_BUTTON.
Copyright © GrapeCity, inc. All rights reserved.