"backgroundBrushOn"

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

Synopsis

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

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

Parameter

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 on.

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

Example

In the following example the hatch option is selected for the background.

main()
{
  this.backgroundBrushOn("[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