TCheckValidFileEvent Type
Event type used to let the application indicate whether a given project file exists.
Remarks
TCheckValidFileEvent can be used by programmer to indicate to the IDE if an specified project file is valid (exists). The file to check is passed in AFileName parameter, and the type of file is passed in IDEFileType. Note that for each project file, the event is fired twice, one for the script source code (unit), one for the form file (resource). Even if the file was previously saved without a form, when loading a project again, the event will be fired for the form file type. This is the only way engine can tell that if the file has a form or not. You must inform if the file exists or not setting the AValid parameter. You don't need to handle this event. If this event is not assigned, it will not be fired, and engine will just check if the specified file exists in the hard drive. You only need to set this event in case you want to do some custom saving of project files (like saving in a database, for example).
Syntax
Unit: IDEMain