IVZHighlightEffect.AOffset

Fore syntax

AOffset: Integer;

Fore.NET syntax

AOffset: integer;

Description

The AOffset property determines color transparency level.

Comments

Available values are in the range [0; 255]. The closer the value is to 0, the more transparent is the color.

To determine intensity of red color component, use IVZHighlightEffect.ROffset.

To determine intensity of green color component, use IVZHighlightEffect.GOffset.

To determine intensity of blue color component, use IVZHighlightEffect.BOffset.

Fore example

Executing the example requires that the repository contains an express report with the EXPRESS identifier containing a map.

Ad links to the Express, Metabase, Visualizators system assemblies.

Sub UserProc;
Var
    MB: IMetabase;
    Exp: IEaxAnalyzer;
    Map: IVZMapChart;
    Effect: IVZHighlightEffect;
Begin
    // Get repository
    MB := MetabaseClass.Active;
    // Get express report
    Exp := MB.ItemById("EXPRESS").Edit As IEaxAnalyzer;
    // Get map
    Map := Exp.MapChart.MapChart;
    // Create highlighting effect
    Effect := New VZHighlightEffect.Create;
    Effect.AOffset := 100;
    Effect.ROffset := 45;
    Effect.GOffset := 75;
    Effect.BOffset := 100;
    // Create an object for working with effects
    Map.HoverActiveEffects := New VZEffects.Create;
    // Add effect on mouse over the active map element
    Map.HoverActiveEffects.Add(Effect);
    // Refresh and save report
    Exp.MapChart.Refresh;
    (Exp As IMetabaseObject).Save;
End Sub UserProc;

After executing the example mouse over the active map territory of express report applies highlighting effect.

Fore.NET example

The requirements and result of the Fore.NET example execution match with those in the Fore example.

Imports Prognoz.Platform.Interop.Express;
Imports Prognoz.Platform.Interop.Visualizators;

Public Shared Sub Main(Params: StartParams);
Var
    MB: IMetabase;
    Exp: IEaxAnalyzer;
    Map: IVZMapChart;
    Effect: IVZHighlightEffect;
Begin
    // Get repository
    MB := Params.Metabase;
    // Get express report
    Exp := MB.ItemById["EXPRESS"].Edit() As IEaxAnalyzer;
    // Get map
    Map := Exp.MapChart.MapChart;
    // Create highlighting effect
    Effect := New VZHighlightEffect.Create();
    Effect.AOffset := 100;
    Effect.ROffset := 45;
    Effect.GOffset := 75;
    Effect.BOffset := 100;
    // Create an object for working with effects
    Map.HoverActiveEffects := New VZEffects.Create();
    // Add effect on mouse over the active map element
    Map.HoverActiveEffects.Add(Effect);
    // Refresh and save report
    Exp.MapChart.Refresh();
    (Exp As IMetabaseObject).Save();
End Sub;

See also:

IVZHighlightEffect