User Tools

Site Tools


api:dk11:delphi:gislibrarysvg.tgis_symbollibrarysvg.registerresourcelibrary_string

Table of Contents



TGIS_SymbolLibrarySVG.RegisterResourceLibrary method

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

Registers a symbol library stored in application resources.

Available also on: .NET | Java | ActiveX | Python.

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 resource 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' );
2026/07/11 00:39

Page Tools