IHYVCLHost

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.

Location

  • Unit: Hydra.VCL.Interfaces.pas
  • Ancestry: IHYVCLHost


 

Form

Gets reference to a host parent form.

property Form: TForm read write

GetForm

function GetForm: TForm

GetInstanceCount

function GetInstanceCount: Integer

GetInstances

function GetInstances(Index: Integer): IHYVCLPlugin

Parameters:

  • Index:

GetMenuController

function GetMenuController: IHYVCLMenuController

GetToolbarController

function GetToolbarController: IHYVCLToolbarController

HostParameters

Gets or sets reference to the list of host parameters.

property HostParameters: TStrings read write

InstanceCount

Gets the number of plugin instances created by the host.

property InstanceCount: Integer read write

Instances

property Instances[Index: Integer]: IHYVCLPlugin read write

MenuController

property MenuController: IHYVCLMenuController read write

SendMessage  deprecated

procedure SendMessage(const Sender: IHYVCLPlugin; aMessageID: Integer; const aMessageData: pointer)

Parameters:

  • Sender:
  • aMessageID:
  • aMessageData:

ToolbarController

property ToolbarController: IHYVCLToolbarController read write

 

Form

Gets reference to a host parent form.

property Form: TForm read write

HostParameters

Gets or sets reference to the list of host parameters.

property HostParameters: TStrings read write

InstanceCount

Gets the number of plugin instances created by the host.

property InstanceCount: Integer read write

Instances

property Instances[Index: Integer]: IHYVCLPlugin read write

MenuController

property MenuController: IHYVCLMenuController read write

ToolbarController

property ToolbarController: IHYVCLToolbarController read write

 

GetForm

function GetForm: TForm

GetInstanceCount

function GetInstanceCount: Integer

GetInstances

function GetInstances(Index: Integer): IHYVCLPlugin

Parameters:

  • Index:

GetMenuController

function GetMenuController: IHYVCLMenuController

GetToolbarController

function GetToolbarController: IHYVCLToolbarController

SendMessage  deprecated

procedure SendMessage(const Sender: IHYVCLPlugin; aMessageID: Integer; const aMessageData: pointer)

Parameters:

  • Sender:
  • aMessageID:
  • aMessageData: