TOutputDoneEvent = procedure(Sender : TComponent) of object;
This event is invoked when the output is finished. Note: don't try to start other output job before OnDone event from the previous job is triggered. An attempt to do so will cause the "Component is buisy" exception. It is a good practice to desable output-starting controls in the method where the output component's Run method is called and to enable them in the output component's OnDone event handler.
OnProgress : TOutputProgressEvent;
TOutputProgressEvent = procedure(Sender : TComponent) of object;
This event is invoked every time the Progress property value changes. Be careful when referencing GUI interface components in OnProgress event's handler.
See also: Progress property
OnThreadException : TThreadExceptionEvent
TThreadExceptionEvent = procedure(Sender : TComponent; E : Exception) of object;
Thread procedure should never terminate. For this reason all the exceptions that might arise in the thread procedure are caught within the procedure itself. The thread generates OnThreadException event to inform the application that an exception has occurred. Avoid any potential exception-rising actions in this event’s handler! Use the handler to reset application controls (if needed) and call the input component’s Reset method. See the CD ripper demo for an example of handling thread exceptions.
Copyright © 2002, 2003 Andrei Borovsky. All rights reserved.