ToolTipStyle: IVZToolTipStyle;
ToolTipStyle: Prognoz.Platform.Interop.Visualizators.VZToolTipStyle;
The ToolTipStyle property determines tooltip style of additional visualizer on the map.
Additional visualizers on the map:
Executing the example requires that the repository contains an express report with the EXPRESS identifier containing a map with pie factors.
Add links to the Drawing, Express, Metabase, Visualizators system assemblies.
Sub UserProc;
Var
MB: IMetabase;
Express: IEaxAnalyzer;
Map: IVZMapChart;
Layer: IVZMapChartLayer;
Pie: IVZMapChartVisualElement;
ToolTip: IVZTooltipStyle;
Color: IGxColor;
Brush: IGxBrush;
Begin
// Get repository
MB := MetabaseClass.Active;
// Get express report
Express := MB.ItemById("EXPRESS").Edit As IEaxAnalyzer;
// Get map
Map := Express.MapChart.MapChart;
// Get map layer
Layer := Map.RootLayer.SubLayers.Item(0);
// Get pie factor
Pie := Layer.Pies.Item(0) As IVZMapChartVisualElement;
// Get, change tooltip background and apply it to pie factor
ToolTip := Layer.ItemsToolTipStyle;
Color := New GxColor.CreateRGB(120, 0, 120);
Brush := New GxSolidBrush.Create(Color);
ToolTip.Background := Brush;
Pie.ToolTipStyle := ToolTip;
// Refresh and save report
Express.RefreshAll;
(Express As IMetabaseObject).Save;
End Sub UserProc;
After executing the example tooltip background of pie factors 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;
Express: IEaxAnalyzer;
Map: IVZMapChart;
Layer: IVZMapChartLayer;
Pie: IVZMapChartVisualElement;
ToolTip: VZTooltipStyle;
Color: GxColor = New GxColor();
Brush: GxSolidBrush = New GxSolidBrushClass();
Begin
// Get repository
MB := Params.Metabase;
// Get express report
Express := MB.ItemById["EXPRESS"].Edit() As IEaxAnalyzer;
// Get map
Map := Express.MapChart.MapChart;
// Get map layer
Layer := Map.RootLayer.SubLayers.Item[0];
// Get pie factor
Pie := Layer.Pies.Item[0] As IVZMapChartVisualElement;
// Get, change tooltip background and apply it to pie factor
ToolTip := Layer.ItemsToolTipStyle;
Color.CreateRGB(120, 0, 120);
Brush.Create(Color);
ToolTip.Background := Brush;
Pie.ToolTipStyle := ToolTip;
// Refresh and save report
Express.RefreshAll();
(Express As IMetabaseObject).Save();
End Sub;
See also: