IVZHighlightEffect.AOffset

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.

Example

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

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

Sub UserProc;
Var
    MB: IMetabase;
    Exp: IEaxAnalyzer;
    Map: IVZMapChart;
    Effect: IVZHighlightEffect;
Begin
    // Get the current repository
    MB := MetabaseClass.Active;
    // Get express report
    Exp := MB.ItemById("EXPRESS").Edit As IEaxAnalyzer;
    // Get map
    Map := Exp.MapChart.MapChart;
    // Create highlight effect
    Effect := New VZHighlightEffect.Create;
    Effect.AOffset := 100;
    Effect.ROffset := 45;
    Effect.GOffset := 75;
    Effect.BOffset := 100;
    // Create an object that is used to work with effects
    Map.HoverActiveEffects := New VZEffects.Create;
    // Add effect on mouseover on active map layer
    Map.HoverActiveEffects.Add(Effect);
    // Refresh and save report
    Exp.MapChart.Refresh;
    (Exp As IMetabaseObject).Save;
End Sub UserProc;

After executing the example the highlight affect is applied on mouseover on the active map territory of express report.

See also:

IVZHighlightEffect