JVCL Help:TJvPluginManager.OnBeforeLoad

From Project JEDI Wiki
Jump to navigationJump to search
JEDI Visual Component Library Help

Search in JVCL Help

Search in all projects


Event called just before a plugin is loaded.


 TJvBeforeLoadEvent = procedure (Sender: TObject; FileName: string; var AllowLoad: Boolean) ofobject;
propertyOnBeforeLoad: TJvBeforeLoadEvent;


Parameters Description
AllowLoad Flag to indicate if the plugin should be loaded. Set this to False to prevent the plugin from loading.
FileName Name of the package or DLL to load
Sender Reference to this plugin manager


Write an OnBeforeLoad event handler to take additional action before a plugin is loaded. The Filename parameter contains the filename of the plugin about to be loaded. Set AllowLoad to False to prevent the plugin from being loaded (in which case the OnAfterLoad will not be triggered).
The OnBeforeLoad event will only occur when LoadPlugins is used to scan for and load all plugins in a folder.

See Also

TJvPluginManager.LoadPlugins, TJvPluginManager.OnAfterLoad, TJvPluginManager.OnNewCommand, TJvPluginManager.OnPlugInError


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