ItemsToolTipStyle: IVZToolTipStyle;
The ItemsToolTipStyle property returns an object used to work with tooltip style.
To determine whether standard color of tooltip font is used, use IVZBubbleTree.LabelAutoColor.
Executing the example requires an express report with the EXPRESS_IVZBUBBLETREE identifier that contains a bubble tree.
Add links to the Drawing, Express, Metabase, Visualizators system assemblies.
Sub UserProc;
Var
mb: IMetabase;
analyzer: IEaxAnalyzer;
bt: IEaxBubbleTree;
BubbleTree: IVZBubbleTree;
ItemsTooltipStyle: IVZToolTipStyle;
color: GxColor;
Begin
// Get the current repository
mb := MetabaseClass.Active;
// Get express report
analyzer := mb.ItemById("EXPRESS_IVZBUBBLETREE").Edit As IEaxAnalyzer;
// Get bubble tree
bt := analyzer.BubbleTree;
// Get bubble tree as a visualizer
BubbleTree := bt.BubbleTree;
// Get tooltip style
ItemsTooltipStyle := bubbletree.ItemsToolTipStyle;
// Disable standard tooltip font color
BubbleTree.LabelAutoColor := False;
// Create a new color
color := New GxColor.CreateRGB(120, 0, 120);
// Set new font color for tooltip
ItemsTooltipStyle.FontColor := color;
// Save changes
(analyzer As IMetabaseObject).Save;
End Sub UserProc;
After executing the example the tooltip font color is changed.
See also: