Background: IGxBrush;
The Background property determines the control background.
Executing the example requires that the repository contains an express report with the EXPRESS_REPORT identifier containing a 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 Drawing, Express, Metabase, Visualizators system assemblies. The specified procedure should be called from the Main entry point.
Sub UserProc;
Var
Metabase: IMetabase;
EaxAnalyzer: IEaxAnalyzer;
BubbleTree: IVZBubbleTree;
Timeline: IVZTimeLine;
Style: IVZControlStyle;
Begin
// Get the current repository
Metabase := MetabaseClass.Active;
// Get express report
EaxAnalyzer := Metabase.ItemById("EXPRESS_REPORT").Edit As IEaxAnalyzer;
// Get bubble tree
BubbleTree := EaxAnalyzer.BubbleTree.BubbleTree;
// Get timeline
Timeline := BubbleTree.TimeLine;
// Get timeline style
Style := Timeline.Style;
// Set new background
Style.Background := New GxSolidBrush.Create(New GxColor.CreateRGB(206, 157, 182));
// Set new border color
Style.BorderPen := New GxPen.CreateSolid(New GxColor.CreateRGB(167, 84, 125), 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(0, 0, 0);
// Set shadow color
Style.FontShadowColor := New GxColor.CreateRGB(255, 0, 0);
// Set element indents
Style.Margin := New GxRectF.Create(15, 15, 15, 15);
// Set element margins
Style.Padding := New GxRectF.Create(10, 10, 10, 10);
// Set shadow color
Style.ShadowColor := New GxColor.CreateRGB(255, 0, 0);
// Set changed style
Timeline.Style := Style;
// Set changed timeline
BubbleTree.TimeLine := Timeline;
// Save changes in 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: