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 bubble tree.

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

Sub UserProc;
 
Var
     Metabase: IMetabase;

     Analyzer: IEaxAnalyzer;
     BubbleTree: IVZBubbleTree;
     ColorLegend: IVZColorLegendBase;
     Brush: IGxBrush;
 Begin
     
// Get metabase object
     Metabase := MetabaseClass.Active;
     
// Get express report object
     Analyzer := Metabase.ItemById("BUBBLE_TREE").Edit As IEaxAnalyzer;
     
// Get bubble tree
     BubbleTree := Analyzer.BubbleTree.BubbleTree;
     
// Get visualizator color legend
     ColorLegend := BubbleTree.Legends.Item(0As IVZColorLegendBase;
     
// Enable scale elements highlighting
     ColorLegend.DoHighlight := True;
     
// Determine brush for inactive elements highlighting
     Brush := New GxSolidBrush.Create(New GxColor.CreateRGB(238238143));
     ColorLegend.InactiveBrush := Brush;
     
// Determine brush to highlight 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 to the 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