IMapView.SelectionFlashPhasesCount

Syntax

SelectionFlashPhasesCount: Integer;

Description

The SelectionFlashPhasesCount property determines the number of blink phases for the territory highlight.

Example

Executing the example requires a form with the following components: the Button component named Button1, the MapBox component named MapBox1, and the UiMap component named UiMap1. UiMap1 is a data source for MapBox1. The map must be connected to the UiMap1 component.

The example is a handler of the OnClick event for the Button1 component.

Add links to the ExtCtrls, Forms, and Map system assemblies.

Sub Button1OnClick(Sender: Object; Args: IMouseEventArgs);
Var
    MapView: IMapView;
Begin
    MapView := UiMap1.Map.View;
    // Determine whether highlighting flashes
    MapView.UseSelectionFlash:= True;
    // Set the number of flashing phases
    MapView.SelectionFlashPhasesCount := 6;
    // Set flashing interval during one phase
    MapView.SelectionFlashTimerInterval := 10;
    // Set map territory selection mode
    MapView.SelectionMode := MapViewSelectionMode.Border;
End Sub Button1OnClick;

After executing the example when highlighting the territories the blinking is used with a blink phase interval of 10 milliseconds. Each flash is divided into six phases. After executing the example the territory border selection mode is set:

See also:

IMapView