"backgroundBrushOff"

Defines the fill-pattern for the background of the EWO when it is switched off.

Synopsis

shape.backgroundBrushOff(string [type[parameter2,parameter3, parameter4]]);

setValue(string shape,"backgroundBrushOff",string [type[parameter2,parameter3, parameter4]]");

Parameters

Parameter Description
type

Defines the fill-pattern for the background. The following options are available:

  • Outline
  • Solid
  • Pattern
  • Hatch
  • Gradient

Depending on the selected fill-pattern you have to specify the parameter 2 - 4 accordingly. See also Fill-pattern string.

Description

Defines the fill-pattern for the background of the EWO when it is switched off.

Note that the function "backgroundBrushOff" works for the ToggleSwitch Ewo only for the skin types "BerylSlide" and "BrushedMetalSlide"!

Example

In the following example a picture is used for the EWO background.

main()
{
  this.backgroundBrushOff("[pattern,[tile,any,examplepic.gif]]");
}
Abbildung 1. A Picture is used for the Background of a Toggle Switch
Abbildung 2. A Picture is used for the Background of a Toggle Switch
Abbildung 3. A gradient Color is used for the Background of a Toggle Switch
Abbildung 4. A gradient Color is used for the Background of a Toggle Switch

Assignment

ToggleSwitch EWO