IHYHost
From RemObjects Software
This is a Hydra Architecture entry
Feel free to add your notes to this topic below.
Overview
The IHYHost interface is implemented by the host side THYModuleManager component. The plugin uses the IHYHost interface for access to the host, such as calling the SendMessage method for callbacks into the host.
In order to create menu items and toolbars, the host uses MenuController and ToolbarController components. Since also the plugins might need to access such controllers, I extended IHYHost so that the plugins have a way to access the controllers.
File
uHYIntf
Declaration
IHYHost = interface;
Hierarchy
- IInterface
- IHYHost
Properties
| | | |
|---|---|---|
| HostParameters |
The purpose of HostParameters is to provide initialization parameters for the plugincreation. CreateInstance will assign HostParameters to the HostParameters property of the plugin once it has been created. HostParameters cannot be used for data exchange. Use custom interfaces if you want to pass values from the host application to the plugin after the plugin has been created and after HostParameters has been assigned. | |
| InstanceCount |
Read InstanceCount to determine the number of items in the Instances array. | |
| Instances |
Read Instances to access the plugins currently loaded by the host. The plugin can use this property for access to plugins in other modules. | |
| MenuController |
MenuController provides access to the component used to create the host menu system. | |
| ToolbarController |
ToolbarController provides access to the component used to create the host toolbar system. |
Methods
| | |
|---|---|
| SendMessage | The plugin should use SendMessage for sending callback messages into the Host. As implemented by THYModuleManager.SendMessage, the parameters will be passed to the OnPluginMessage event. |
See Also
Lists — Glossary — Features — How To — Components — Tools — Samples — Articles — Architecture — Issues
Categories: Text | Hydra | Architecture | Interface | Delphi
