DK11 for Delphi | GisLibrarySVG.TGIS_SymbolLibrarySVG.RegisterResourceLibrary | Constructors | Methods | Properties
Register resource library library.
// Delphi public procedure RegisterResourceLibrary( const _name : String ); overload;
// C++ Builder public: void RegisterResourceLibrary( const UnicodeString _name ) /* overload */;
Name | Type | Description |
---|---|---|
_name | String | library name |
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' );