THYSilverlightVisualPluginWrapper

Overview

The THYSilverlightVisualPluginWrapper internal wrapper class is used internally in the Hydra framework to provide support for Silverlight visual plugin instances.

You do not need to use this class directly, since this class or one of its descendants will be created internally by the THYSilverlightPluginFactory whenever you call one of the THYModuleManager Create* methods. To manipulate your plugins, you can use the IHYVisualPlugin or IHYNonVisualPlugin interfaces.

Location

Implements

 

constructor Create (IDispatch, THYPluginDescriptor)    (declared in THYSilverlightPluginWrapper)

Creates a new instance of the class.

constructor Create(aManagedInstance: IDispatch; Descriptor: THYPluginDescriptor)

Parameters:

  • aManagedInstance: Cross-platform instance
  • Descriptor: Descriptor

constructor Create (THYPluginDescriptor, string)

Creates a new instance of the class.

constructor Create(Descriptor: THYPluginDescriptor; FileName: string)

Parameters:

  • Descriptor: Reference to a plugin descriptor.
  • FileName: Path to a Silverlight plugin file.

CrossPlatformInstance  protected    (declared in THYBaseCrossPlatformPluginWrapper)

Plugin instance

property CrossPlatformInstance: IDispatch read write

Descriptor  protected    (declared in THYBaseCrossPlatformPluginWrapper)

property Descriptor: THYPluginDescriptor read write

GetIDsOfNames  protected stdcall    (declared in THYFakeIDispatch)

Maps a single member and an optional set of argument names to a corresponding set of integer DISPIDs. Empty.

function GetIDsOfNames(const IID: TGUID; Names: Pointer; NameCount: Integer; LocaleID: Integer; DispIDs: Pointer): HResult

Parameters:

  • IID: Reserved for future use. Must be IID_NULL.
  • Names: The array of names to be mapped.
  • NameCount: The count of the names to be mapped.
  • LocaleID: The locale context in which to interpret the names.
  • DispIDs: Caller-allocated array, each element of which contains an identifier (ID) corresponding to one of the names passed in the rgszNames array.

GetObject    (declared in THYSilverlightPluginWrapper)

Returns a reference to the associated object.

function GetObject: TObject

GetTypeInfo  protected stdcall    (declared in THYFakeIDispatch)

Retrieves the type information for an object, which can then be used to get the type information for an interface. Empty.

function GetTypeInfo(Index: Integer; LocaleID: Integer; out TypeInfo: ): HResult

Parameters:

  • Index: Index of the type information to return.
  • LocaleID: The locale identifier for the type information.
  • TypeInfo: The requested type information object.

GetTypeInfoCount  protected stdcall    (declared in THYFakeIDispatch)

Retrieves the number of type information interfaces that an object provides (either 0 or 1). Empty

function GetTypeInfoCount(out Count: Integer): HResult

Parameters:

  • Count: The number of type information interfaces provided by the object. If the object provides type information, this number is 1; otherwise the number is 0.

Hide

Hides a plugin control.

procedure Hide

Host    (declared in THYSilverlightPluginWrapper)

Gets or sets reference to an instance of a host.

property Host: IHYHost read write

HostParameters    (declared in THYSilverlightPluginWrapper)

Gets or sets list of a host parameters.

property HostParameters: TStrings read write

InstanceID    (declared in THYSilverlightPluginWrapper)

Gets the run-time identifier of the plugin instance. Deprecated.

property InstanceID: integer read write

InterfaceSupportsErrorInfo  protected stdcall    (declared in THYFakeIDispatch)

Indicates whether an interface supports the IErrorInfo interface.

function InterfaceSupportsErrorInfo(const iid: TIID): HResult

Parameters:

  • iid: An interface identifier (IID).

Invoke  protected stdcall    (declared in THYFakeIDispatch)

Provides access to properties and methods exposed by an object. Empty.

function Invoke(DispID: Integer; const IID: TGUID; LocaleID: Integer; Flags: Word; var Params: ; VarResult: Pointer; ExcepInfo: Pointer; ArgErr: Pointer): HResult

Parameters:

  • DispID: Identifies the member.
  • IID: Reserved for future use. Must be IID_NULL.
  • LocaleID: The locale context in which to interpret arguments.
  • Flags: Flags describing the context of the Invoke call.
  • Params: Pointer to a DISPPARAMS structure containing an array of arguments, an array of argument DISPIDs for named arguments, and counts for the number of elements in the arrays.
  • VarResult: Pointer to the location where the result is to be stored, or nil if the caller expects no result.
  • ExcepInfo: Pointer to a structure that contains exception information.
  • ArgErr: The index within rgvarg of the first argument that has an error.

PluginActions    (declared in THYSilverlightPluginWrapper)

Gets reference to the associated action list.

property PluginActions: TActionList read write

ReferenceCount    (declared in THYFakeIDispatch)

Gets the number of the references to this object.

property ReferenceCount: Integer read write

SafeCallException  override    (declared in THYFakeIDispatch)

Handles exceptions in methods declared using the safecall calling convention.

function SafeCallException(ExceptObject: TObject; ExceptAddr: Pointer): HResult

Parameters:

  • ExceptObject: Exception object.
  • ExceptAddr: Addres of the exception.

Show

Shows a plugin control.

procedure Show

ShowParented

Displays content of a plugin within specified parent control.

procedure ShowParented(aParent: TWinControl)

Parameters:

  • aParent: Reference to the parent control.

ShowWindowed

Empty.

procedure ShowWindowed

Visible

Gets or sets value that defines whether plugin is visible.

property Visible: boolean read write

 

CrossPlatformInstance  protected    (declared in THYBaseCrossPlatformPluginWrapper)

Plugin instance

property CrossPlatformInstance: IDispatch read write

Descriptor  protected    (declared in THYBaseCrossPlatformPluginWrapper)

property Descriptor: THYPluginDescriptor read write

Host    (declared in THYSilverlightPluginWrapper)

Gets or sets reference to an instance of a host.

property Host: IHYHost read write

HostParameters    (declared in THYSilverlightPluginWrapper)

Gets or sets list of a host parameters.

property HostParameters: TStrings read write

InstanceID    (declared in THYSilverlightPluginWrapper)

Gets the run-time identifier of the plugin instance. Deprecated.

property InstanceID: integer read write

PluginActions    (declared in THYSilverlightPluginWrapper)

Gets reference to the associated action list.

property PluginActions: TActionList read write

ReferenceCount    (declared in THYFakeIDispatch)

Gets the number of the references to this object.

property ReferenceCount: Integer read write

Visible

Gets or sets value that defines whether plugin is visible.

property Visible: boolean read write

 

constructor Create (IDispatch, THYPluginDescriptor)    (declared in THYSilverlightPluginWrapper)

Creates a new instance of the class.

constructor Create(aManagedInstance: IDispatch; Descriptor: THYPluginDescriptor)

Parameters:

  • aManagedInstance: Cross-platform instance
  • Descriptor: Descriptor

constructor Create (THYPluginDescriptor, string)

Creates a new instance of the class.

constructor Create(Descriptor: THYPluginDescriptor; FileName: string)

Parameters:

  • Descriptor: Reference to a plugin descriptor.
  • FileName: Path to a Silverlight plugin file.

GetIDsOfNames  protected stdcall    (declared in THYFakeIDispatch)

Maps a single member and an optional set of argument names to a corresponding set of integer DISPIDs. Empty.

function GetIDsOfNames(const IID: TGUID; Names: Pointer; NameCount: Integer; LocaleID: Integer; DispIDs: Pointer): HResult

Parameters:

  • IID: Reserved for future use. Must be IID_NULL.
  • Names: The array of names to be mapped.
  • NameCount: The count of the names to be mapped.
  • LocaleID: The locale context in which to interpret the names.
  • DispIDs: Caller-allocated array, each element of which contains an identifier (ID) corresponding to one of the names passed in the rgszNames array.

GetObject    (declared in THYSilverlightPluginWrapper)

Returns a reference to the associated object.

function GetObject: TObject

GetTypeInfo  protected stdcall    (declared in THYFakeIDispatch)

Retrieves the type information for an object, which can then be used to get the type information for an interface. Empty.

function GetTypeInfo(Index: Integer; LocaleID: Integer; out TypeInfo: ): HResult

Parameters:

  • Index: Index of the type information to return.
  • LocaleID: The locale identifier for the type information.
  • TypeInfo: The requested type information object.

GetTypeInfoCount  protected stdcall    (declared in THYFakeIDispatch)

Retrieves the number of type information interfaces that an object provides (either 0 or 1). Empty

function GetTypeInfoCount(out Count: Integer): HResult

Parameters:

  • Count: The number of type information interfaces provided by the object. If the object provides type information, this number is 1; otherwise the number is 0.

Hide

Hides a plugin control.

procedure Hide

InterfaceSupportsErrorInfo  protected stdcall    (declared in THYFakeIDispatch)

Indicates whether an interface supports the IErrorInfo interface.

function InterfaceSupportsErrorInfo(const iid: TIID): HResult

Parameters:

  • iid: An interface identifier (IID).

Invoke  protected stdcall    (declared in THYFakeIDispatch)

Provides access to properties and methods exposed by an object. Empty.

function Invoke(DispID: Integer; const IID: TGUID; LocaleID: Integer; Flags: Word; var Params: ; VarResult: Pointer; ExcepInfo: Pointer; ArgErr: Pointer): HResult

Parameters:

  • DispID: Identifies the member.
  • IID: Reserved for future use. Must be IID_NULL.
  • LocaleID: The locale context in which to interpret arguments.
  • Flags: Flags describing the context of the Invoke call.
  • Params: Pointer to a DISPPARAMS structure containing an array of arguments, an array of argument DISPIDs for named arguments, and counts for the number of elements in the arrays.
  • VarResult: Pointer to the location where the result is to be stored, or nil if the caller expects no result.
  • ExcepInfo: Pointer to a structure that contains exception information.
  • ArgErr: The index within rgvarg of the first argument that has an error.

SafeCallException  override    (declared in THYFakeIDispatch)

Handles exceptions in methods declared using the safecall calling convention.

function SafeCallException(ExceptObject: TObject; ExceptAddr: Pointer): HResult

Parameters:

  • ExceptObject: Exception object.
  • ExceptAddr: Addres of the exception.

Show

Shows a plugin control.

procedure Show

ShowParented

Displays content of a plugin within specified parent control.

procedure ShowParented(aParent: TWinControl)

Parameters:

  • aParent: Reference to the parent control.

ShowWindowed

Empty.

procedure ShowWindowed