TatScripterLibrary Class
Base class for all Delphi-based libraries that can be registered in the scripter.
Remarks
Descendants can be registered using the RegisterScripterLibrary procedure or TatCustomScripter.AddLibrary. See also TatCustomScripter.LoadLibrary.
Override Init to register classes, methods, and properties in the scripter.
Additional overridable methods include Finalize and LibraryName.
Syntax
Unit: atScript
TatScripterLibrary = class(TObject);
Constructors
| Name | Description |
|---|---|
| Create | Creates a new library instance. Library instances are created automatically by the scripter; you do not need to call this constructor directly. |
Methods
| Name | Description |
|---|---|
| Finalize | Finalize method is called by the scripter when the library is removed from the scripter. Override Finalize method to remove all classes, methods and properties you have previously registered in Init method. |
| Init | Called when the library is registered or loaded. Override to register classes, methods, and properties in the scripter. |
| LibraryName | Override class function LibraryName to provide the name for which the library will be known by scripter. |
Properties
| Name | Description |
|---|---|
| Scripter | Provides a reference to the Scripter object in which you this library must register the classes, methods and properties. |