IVZMapChartVisualElement.ToolTipStyle

Fore syntax

ToolTipStyle: IVZToolTipStyle;

Fore.NET syntax

ToolTipStyle: Prognoz.Platform.Interop.Visualizators.VZToolTipStyle;

Description

The ToolTipStyle property determines tooltip style of additional visualizer on the map.

Comments

Additional visualizers on the map:

Fore example

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(0As IVZMapChartVisualElement;
    // Get, change tooltip background and apply it to pie factor
    ToolTip := Layer.ItemsToolTipStyle;
    Color := New GxColor.CreateRGB(1200120);
    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.

Fore.NET example

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[0As IVZMapChartVisualElement;
    // Get, change tooltip background and apply it to pie factor
    ToolTip := Layer.ItemsToolTipStyle;
    Color.CreateRGB(1200120);
    Brush.Create(Color);
    ToolTip.Background := Brush;
    Pie.ToolTipStyle := ToolTip;
    // Refresh and save report
    Express.RefreshAll();
    (Express As IMetabaseObject).Save();
End Sub;

See also:

IVZMapChartVisualElement