JVCL Help:TJvPluginManager.AddCustomPlugin

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

Search in JVCL Help

Search in all projects


Adds a plugin to the manager.


 functionAddCustomPlugin(PlugIn: TJvPlugIn; constFileName: string = ): Boolean;


Parameters Description
PlugIn: TJvPlugIn Reference to the TJvPlugin instance to register.
const FileName: string = Description for this parameter


AddCustomPlugin will add the specified plugin to the list of loaded plugins. The plugin will be registered as a custom plugin and will be initialized with the filename CustomPlugin.
Just as with loading a plugin directly, each command supported by the plugin will be registered using the OnNewCommand event.
This method can be used to add plugins embedded in the main application or additional plugins embedded in another plugin DLL or package.
If the initialization of the plugin fails the method will return False, otherwise True will be returned.

See Also

TJvPluginManager.LoadPlugin, TJvPluginManager.OnNewCommand


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