IVZControlStyle.Background

Syntax

Background: IGxBrush;

Description

The Background property determines the control background.

Example

Executing the example requires that the repository contains an express report with the EXPRESS_REPORT identifier that contains bubble tree. Bubble tree timeline looks as shown on the IVZBubbleTree interface description page. Set new values for the timeline properties: background, border, font, font color, indents, margins and shadow color:

Add links to the Metabase, Express, Drawing, Visualizators system assemblies. The specified procedure should be called from the Main entry point.

Sub UserProc;
Var
    Metabase: IMetabase; // Repository
    EaxAnalyzer: IEaxAnalyzer; // Express report
    BubbleTree: IVZBubbleTree; // Bubble tree
    Timeline: IVZTimeLine; // Time scale
    Style: IVZControlStyle; // Time scale style
Begin
    // Get repository object
    Metabase := MetabaseClass.Active;
    // Get express report object
    EaxAnalyzer := Metabase.ItemById("EXPRESS_REPORT").Edit As IEaxAnalyzer;
    // Get bubble tree
    BubbleTree := EaxAnalyzer.BubbleTree.BubbleTree;
    // Get time line
    Timeline := BubbleTree.TimeLine;
    // Get time line style
    Style := Timeline.Style;
    // Set new background
    Style.Background := New GxSolidBrush.Create(New GxColor.CreateRGB(206157182));
    // Set new border color
    Style.BorderPen := New GxPen.CreateSolid(New GxColor.CreateRGB(16784125), 2);
    // Set border rounding radius
    Style.BorderRadius := 1;
    // Set new font
    Style.Font := New GxFont.Create("Tahoma"15);
    // Set new font color
    Style.FontColor := New GxColor.CreateRGB(000);
    // Determine shadow color
    Style.FontShadowColor := New GxColor.CreateRGB(25500);

    // Set element indents
    Style.Margin := New GxRectF.Create(15151515);
    // Set element margins
    Style.Padding := New GxRectF.Create(10101010);
    // Set shadow color
    Style.ShadowColor := New GxColor.CreateRGB(25500);
    // Set changed style
    Timeline.Style := Style;
    // Set changed time scale
    BubbleTree.TimeLine := Timeline;
    // Save changes to the express report
    (EaxAnalyzer As IMetabaseObject).Save;
End Sub UserProc;

After executing the example bubble tree timeline properties are changed in the express report: background, border, font, font color, indents, margins and shadow color:

See also:

IVZControlStyle