ssCore.ActiveX.createObject

Create a new ActiveX object.


Availability:

First available in version 3.3 build 120.


Input Parameters:

object - An identifier that will be used to reference this ActiveX object.

progId - Programmatic id (class name) of the ActiveX control you want to create e.g. use 'Shell.Explorer' to create an instance of the Internet Explorer Web Browser control.

left - [Optional] - Desired x (left) position of the object window in pixels.

top - [Optional] - Desired y (top) position of the object window in pixels.

width - [Optional] - Desired width of the object window in pixels.

height - [Optional] - Desired height of the object window in pixels.

visible - [Optional] - Specifies whether the object window should be visible or not (default is false). Valid values include: false and true.

license - [Optional] - Optional license string, required for some controls.


Output Parameters:

No output parameters.


Asynchronous Mode:

When this method is called asynchronously, a return object containing the output parameters is passed to the specified callback function.

ssCore.ActiveX.createObject( paramsObject [, callbackParamsObject] [, errorParamsObject] );


Synchronous Mode:

When this method is called synchronously, a return object containing the output parameters is returned to the caller immediately.

var returnObject = ssCore.ActiveX.createObject( paramsObject );


Notes:

None.


Examples:

ssCore.ActiveX.createObject({object:"MyBrowser", progId:"Shell.Explorer", left:"10", top:"10", width:"100", height:"100", visible:"true"});