BackgroundBrush Property

Visual LANSA Feature

BackgroundBrush Property

DirectX Only

Reference to an instance of a Brush (#Prim_vs.Brush) applied to the background of the control.

Background features of a Style are not inherited by child controls.  This ensures that a background applied to a form is not repeated verbatim on child controls.

If both a BackgroundBrush and NormBackColor are specified, the BackgroundBrush will take precedence.

The BackgroundBrush property can be used as shown in the following Example.

Define_Com Class(#PRIM_VS.Style) Name(#BackGround) Backgroundbrush(#Backgroundbrush)

Define_Com Class(#PRIM_VS.LinearBrush) Name(#Backgroundbrush) Colors(#BackgroundbrushColors)

Define_Com Class(#Prim_Vs.BrushColors) Name(#BackgroundbrushColors)

Define_Com Class(#PRIM_VS.BrushColor) Name(#BackgroundbrushColor1) Color(Silver) Parent(#BackgroundbrushColors)

Define_Com Class(#PRIM_VS.BrushColor) Name(#BackgroundbrushColor1) At(100) Color(White) Parent(#BackgroundbrushColors)