TBackgroundWorker v1.1

Copyright © Kambiz R. Khojasteh. All rights reserved.
Get future component updates from http://www.delphiarea.com.

DESCRIPTION

The TBackgroundWorker component allows you to run an operation on a separate, dedicated thread. Time-consuming operations like downloads and database transactions can cause your user interface (UI) to seem as though it has stopped responding while they are running. When you want a responsive UI and you are faced with long delays associated with such operations, the TBackgroundWorker component provides a convenient solution.

To execute a time-consuming operation in the background, create a TBackgroundWorker component and listen for events that report the progress of your operation and signal when your operation is finished. You can create the TBackgroundWorker component programmatically or you can drag it onto your form from the Components palette.

To set up for a background operation, add an event handler for the OnWork event. Call your time-consuming operation in this event handler. To start the operation, call Execute method. To receive notifications of progress updates, handle the OnWorkProgress event. To receive feedbacks from the operation in background, handle OnWorkFeedback event. To receive a notification when the operation is completed, handle the OnWorkComplete event.

PROPERTIES

METHODS

EVENTS

HISTORY

LICENSE

The TBackgroundWorker component is freeware. You may copy components' files AS LONG AS YOU COPY ALL OF THEM. If you want to change the source code in order to improve the component's features, performance, etc. please send me the new source code so that I can have a look at it. The changed source code should contain descriptions what you have changed, and of course your name. The only thing you MAY NOT CHANGE is the ORIGINAL COPYRIGHT INFORMATION.

DISCLAIMER

The TBackgroundWorker component is provided "AS IS" without any warranty of any kind, either express or implied. The entire risk as to the quality and performance of the software is with you. The author is NOT liable for any DAMAGES resulting from the use and misuse of the components, especially he is NOT liable for DAMAGES that were caused BY ANY VERSION WHICH HAS NOT BEEN PROGRAMMED BY THE AUTHOR HIMSELF.


 END OF DOCUMENT