JVCL Help:TJvChangeNotify
JVCL Help: TJvChangeNotify Class
Search in JVCL Help
Search in all projectsClass Hierarchy
TJvChangeNotify
run\JvChangeNotify.pas
Summary
Component that can monitor file and directory changes and report to the user when a change occurs.
Pascal
run\JvChangeNotify.pas
TJvChangeNotify = class(TJvComponent);
Description
- JVCLInfo
Use a TJvChangeNotify component when you need to monitor changes in one or more directories on the computer. The component can detect changes to files as well as folders. The component uses the FindFirstNotification API to perform the actual work of monitoring the directories (for more information, see the Platform SDK Help or MSDN), so any limitations of that API is also imposed on TJvChangeNotify. Specifically, there is no information on what file or files have been changed in a directory, only that changes have occurred. If you need to know the details on the exact file or files that have changed, you will have to write your own code.
To avoid locking up the application, a thread is created when the component is activated. The thread then polls the Notifications at a set interval. When a change has been detected, the OnChangeNotify event is triggered and monitoring continues.
About
Contribute to this help topic
This documentation wiki is based on the collaborative effort of Project JEDI users. Your edits are welcome in order to improve documentation quality: edit this page