IVZColorLegendBase.InactiveBrush

Syntax

InactiveBrush: IGxBrush;

Description

The InactiveBrush property determines the brush for highlighting of inactive visualizer elements.

Example

Executing the example requires an express report with the BUBBLE_TREE identifier containing a bubble tree.

Add links to the Drawing, Express, Metabase, Visualizators system assemblies.

Sub UserProc;
Var
    Metabase: IMetabase;
    Analyzer: IEaxAnalyzer;
    BubbleTree: IVZBubbleTree;
    ColorLegend: IVZColorLegendBase;
    Brush: IGxBrush;
Begin
    // Get the current repository
    Metabase := MetabaseClass.Active;
    // Get express report
    Analyzer := Metabase.ItemById("BUBBLE_TREE").Edit As IEaxAnalyzer;
    // Get bubble tree
    BubbleTree := Analyzer.BubbleTree.BubbleTree;
    // Get visualizer color legend
    ColorLegend := BubbleTree.Legends.Item(0As IVZColorLegendBase;
    // Enable highlighting of scale items
    ColorLegend.DoHighlight := True;
    // Determine  brush for highlighting inactive elements
    Brush := New GxSolidBrush.Create(New GxColor.CreateRGB(238238143));
    ColorLegend.InactiveBrush := Brush;
    // Determine brush for highlighting active elements
    Brush := New GxSolidBrush.Create(New GxColor.CreateRGB(49202206));
    ColorLegend.HighlightBrush := Brush;
    // Determine legend element selection mode - on mouse click
    ColorLegend.HoverMode := VisualizatorHoverMode.Click;
    // Save changes in express report
    (Analyzer As IMetabaseObject).Save;
End Sub UserProc;

After executing the example in the express report, the bubble tree legend contains highlighting of elements:

See also:

IVZColorLegendBase