TPaxProgram Events


TPaxProgram.OnPause

Occurs when TPaxProgram instance is in paused state.
property OnPause: TPaxPauseNotifyEvent;

The OnPause event occurs when an attempt is made to call Pause procedure in script or to call TPaxProgram.Pause method.

TPaxProgram.OnHalt

Occurs when program is terminated with Halt procedure call.
property OnHalt: TPaxHaltNotifyEvent

The OnHalt event ccurs when an attempt is made to call Halt procedure in script.

TPaxProgram.OnException

Occurs on handled exception.
property OnException: TPaxErrNotifyEvent

TPaxProgram.OnUnhandledException

Occurs on unhandled exeption.
property OnUnhandledException: TPaxErrNotifyEvent

TPaxProgram.OnLoadProc

Occurs when program tries to load a dll-defined function.
property OnLoadProc: TPaxLoadProcEvent;

TPaxLoadProcEvent = procedure (Sender: TObject;
const ProcName, DllName: String; var Address: Pointer) of object;

TPaxProgram.OnCreateObject

Occurs when program creates an instance of script-defined class.
property OnCreateObject: TPaxObjectNotifyEvent;

TPaxObjectNotifyEvent = procedure (Sender: TPaxProgram; Instance: TObject) of object;

TPaxProgram.OnDestroyObject

Occurs when program destroys an instance of script-defined class.
property OnDestroyObject: TPaxObjectNotifyEvent;

TPaxObjectNotifyEvent = procedure (Sender: TPaxProgram; Instance: TObject) of object;

TPaxProgram.OnPrintEvent

Occurs when program implements Print statement.
property OnPrintEvent: TPaxPrintEvent;

TPaxPrintEvent = procedure (Sender: TPaxProgram;
const Text: String) of object;

TPaxProgram.OnMapTableNamespace

Occurs when program is initializing host-defined namespace.
property OnMapTableNamespace: TPaxMapTableNamespaceEvent;

TPaxMapTableNamespaceEvent = procedure (Sender: TPaxProgram; const FullName: String; Global: Boolean) of object;

See ..\Demos\DemoLoadNamespace in a trial package for Delphi.

TPaxProgram.OnMapTableVarAddress

Occurs when program is initializing a host-defined variable.
property OnMapTableVarAddress: TPaxMapTableVarAddressEvent;

TPaxMapTableVarAddressEvent = procedure (Sender: TPaxProgram; const FullName: String; Global: Boolean; var Address: Pointer) of object;

See ..\Demos\DemoLoadNamespace in a trial package for Delphi.

TPaxProgram.OnMapTableProcAddress

Occurs when program is initializing host-defined function or method.
property OnMapTableProcAddress: TPaxMapTableProcAddressEvent;

TPaxMapTableProcAddressEvent = procedure (Sender: TPaxProgram; const FullName: String; OverCount: Byte; Global: Boolean; var Address: Pointer) of object;

See ..\Demos\DemoLoadNamespace in a trial package for Delphi.

TPaxProgram.OnMapTableClassRef

Occurs when program is initializing hos-defined class reference.
property OnMapTableClassRef: TPaxMapTableClassRefEvent;

TPaxMapTableClassRefEvent = procedure (Sender: TPaxProgram; const FullName: String; Global: Boolean; var ClassRef: TClass) of object;

See ..\Demos\DemoLoadNamespace in a trial package for Delphi.