User Tools

Site Tools


api:dk11:delphi:gislayervector.tgis_layervector.drawscope_string_string

Table of Contents

TGIS_LayerVector.DrawScope method

DK11 for Delphi | GisLayerVector.TGIS_LayerVector.DrawScope | Constructors | Fields | Methods | Properties | Events

Draws only shapes that meet a scope criteria.

Available also on: .NET | Java | ActiveX.

Syntax

// Delphi
public
  function DrawScope(
    const _query : String;
    const _style : String
  ) : Boolean;
// C++ Builder
public:
  bool DrawScope(
    const UnicodeString _query,
    const UnicodeString _style
  );

Parameters

Name Type Description
_query String Query closely mimics the SQL WHERE clause
_style String Name of the style to be used. If Empty, default style will be used.

Result

Type Description
Boolean True, if something was drawn.

Remarks

Use this method to draw only shapes that meet a scope criteria. Normally called by PaintScope.

When using this operation, never call any function which uses FindFirst..FindNext (any function which iterates through the shapes using it - so never use inside an operation like Locate, PaintScope etc.).

2019/09/27 01:09