ItemsToolTipStyle: IVZToolTipStyle;
ItemsToolTipStyle: Prognoz.Platform.Interop.Visualizzators.VZToolTipStyle;
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 metabase object
mb := MetabaseClass.Active;
// Get express report object
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 color of tooltip color
BubbleTree.LabelAutoColor := False;
// Create a new color
color := New GxColor.CreateRGB(120, 0, 120);
// Set a new tooltip font color
ItemsTooltipStyle.FontColor := color;
// Save changes
(analyzer As IMetabaseObject).Save;
End Sub UserProc;
After executing the example the tooltip font color is changed.
The requirements and result of the Fore.NET example execution match with those in the Fore example.
Imports Prognoz.Platform.Interop.Drawing;
Imports Prognoz.Platform.Interop.Express;
Imports Prognoz.Platform.Interop.Visualizators;
…
Public Shared Sub Main(Params: StartParams);
Var
mb: IMetabase;
analyzer: IEaxAnalyzer;
bt: IEaxBubbleTree;
BubbleTree: IVZBubbleTree;
ItemsTooltipStyle: IVZToolTipStyle;
color: GxColorClass_2 = New GxColorClass_2();
Begin
// Get metabase object
mb := Params.Metabase;
// Get express report object
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 color of tooltip font
BubbleTree.LabelAutoColor := False;
// Create a new color
color.CreateRGB(120, 0, 120);
// Set a new tooltip font color
ItemsTooltipStyle.FontColor := color;
// Save changes
(analyzer As IMetabaseObject).Save();
End Sub;
See also: