Link Search Menu Expand Document

SSpread.TypeButtonPictureDown Property

In the command button type cell, set the image when the command button is pressed.

Only valid for cells with $CellTypeButton (command button type) set in the CellType property. Before setting this property, use the Col and Row properties, and so on to specify what to do.

Specify the URL string of the image file or the ReaderObject. Specify null to cancel the image settings. This property is for configuration only. It always returns null when it gets a value.

If this property is not specified and the TypeButtonPicture property is specified, the image set by the TypeButtonPicture property will be displayed regardless of the state of the command button.

Specify a URL, the file will be cached on local computer for faster loading from the next time onwards. The latest files can always be obtained from the server by specifying the HttpResponse object.

This property is subject to property inheritance for command button cells.

Example of usage

Col = 3;
Row = 2;
CellType = $CellTypeButton;
TypeButtonPictureDown = "img/sample1.png"; /* Will be cached */
 
BlockMode = $TRUE;
Col = 3;
Row = 3;
Col2 = 5;
Row2 = 5;
CellType = $CellTypeButton;
TypeButtonPictureDown = getHttpSession().Get("img/sample2.png"); /* Not cached  */
BlockMode = $FALSE;

Related Items
CellType, TypeButtonPicture properties
HttpResponse class