EaxMapBoxTerritoryEventArgs.Create

Syntax

Create(TerritoryId: Integer);

Description

The Create constructor creates argument of the event that occurs on clicking on any region of the map.

Example

Executing the example requires a form with the Button1 button on it, the EaxMapBox component named EaxMapBox1, and the UiEaxMap component, that is a data source for EaxMapBox1.

Sub Button1OnClick(Sender: Object; Args: IMouseEventArgs);
Var
    TerrId: IEaxMapBoxTerritoryEventArgs;
Begin
    TerrId := New EaxMapBoxTerritoryEventArgs.Create(1100);
    EaxMapBox1.OnTerritoryClick(EaxMapBox1, TerrId);
End Sub Button1OnClick;

After executing the example, on clicking the button the event of main mouse button clicking on the region with identifier 1100 is generated.

See also:

EaxMapBoxTerritoryEventArgs