TIDELoadFileEvent Type
Event type used to load a project file from a custom location such as a database.
Remarks
TIDELoadFileEvent can be used by programmer to load a project file in a custom way (from a database, for example). The file to load is passed in AFileName parameter, and the type of file is passed in IDEFileType. For each project file, the event can be fired twice, one for the script source code (unit), one for the form file (resource). You must indicate if the file has a form or not in OnCheckValidFile event. Once you do, OnLoadFile event will be fired only for the existing valid files. You must load the file content from some place and provide it in the parameter AContent. Then you must set Handled parameter to true. If Handled parameter is false, the engine will try to load the file from the hard drive according to its file name. You don't need to handle this event. If this event is not assigned, it will not be fired, and engine will just load the file directly from disk. You only need to set this event in case you want to do some custom saving/loading of project files (like saving in a database, for example).
Syntax
Unit: IDEMain