InactiveBrush: IGxBrush;
The InactiveBrush property determines the brush for highlighting of inactive visualizer elements.
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(0) As IVZColorLegendBase;
// Enable scale elements highlighting
ColorLegend.DoHighlight := True;
// Determine brush for inactive elements highlighting
Brush := New GxSolidBrush.Create(New GxColor.CreateRGB(238, 238, 143));
ColorLegend.InactiveBrush := Brush;
// Determine brush to highlight active elements
Brush := New GxSolidBrush.Create(New GxColor.CreateRGB(49, 202, 206));
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: