## object = DFrameStyle, BarStyle. MenuStyle and ButtonStyle

## object: setBackgroundImage

## object: setBackgroundColor

object.setBackgroundImage: Set the background image for the object

object.setBackgroundColor: Set the background color for the object.

### Syntaxes

object.setBackgroundImage(filePath)

object.setBackgroundColor(color)

### Parameters

filePath

See the filePath paragraph in Styles

color

§ the color, in browser compatible format (hexa RGB or color code)

§ '' (empty string), null or false: No color is set to the object that will be transparent.

### Comment

The setBackgroundImage used as a ButtonStyle method is an alternative to setImageNormal, setImageRoll, … when always the same image is required.

However there are some differences: The image will be tiled and cannot be positioned at a certain place. It acts as a background image as set for in a HTML <BODY> tag and not as set in a HTML <ING> tag.