User Tools

Site Tools


api:dk11:delphi:gislibrarysvg.tgis_symbollibrarysvg.registerresourcelibrary_string

Table of Contents

TGIS_SymbolLibrarySVG.RegisterResourceLibrary method

DK11 for Delphi | GisLibrarySVG.TGIS_SymbolLibrarySVG.RegisterResourceLibrary | Constructors | Methods | Properties

Register resource library library.

Available also on: .NET | Java | ActiveX.

Syntax

// Delphi
public
  procedure RegisterResourceLibrary(
    const _name : String
  ); overload;
// C++ Builder
public:
  void RegisterResourceLibrary(
    const UnicodeString _name
  ) /* overload */;

Parameters

Name Type Description
_name String library name

Remarks

To register your resource base library a RES file should be compiled and added to the sources. A sample RC file looks like this:

LANGUAGE LANG_NEUTRAL, SUBLANG_NEUTRAL
LIBSVG_MYLIB1 RCDATA MYLIB1.ttklibsvg
LIBSVG_MYLIB2 RCDATA MYLIB2.ttklibsvg

Where MYLIB1 and MYLIB2 are names of your libraries (there can more than one library!).

Then you can call upon application startup, but after a TGIS_ViewerWnd or TGIS_ViewerBmp were created (a form Load event is usually a good place):

  TGIS_SymbolLibrarySVG.Handle.RegisterResourceLibrary( 'MYLIB1' );
  TGIS_SymbolLibrarySVG.Handle.RegisterResourceLibrary( 'MYLIB2' );
2020/01/03 01:09