User Tools

Site Tools


api:dk11:delphi:gislayervector.tgis_shape.flash_void

Table of Contents

TGIS_Shape.Flash method

DK11 for Delphi | GisLayerVector.TGIS_Shape.Flash | Overloads | Constructors | Fields | Methods | Properties

Flash shape on screen with default parameters (_times equals 4 and _delay equals 100).

Available also on: .NET | Java | ActiveX.

Syntax

// Delphi
public
  procedure Flash; overload;
// C++ Builder
public:
  void Flash(void) /* overload */;

Example

Delphi

procedure MyClass.GISMouseDown( Sender: TObject; Button: TMouseButton;
                                Shift: TShiftState; X, Y: Integer );
var
  ptg : TGIS_Point ;
  shp : TGIS_Shape ;
begin
  ptg := GIS.ScreenToMap( Point(x, y ) );
 
  // locate a shape with 5 pixels precision
  shp := TGIS_Shape( GIS.Locate( ptg, 5/GIS.Zoom ) );
 
  // let's flash the shape if found
  if shp <> nil then
     shp.Flash;
end;
2020/05/07 01:09

Page Tools