ssCore.ActiveX.setGuides

Link the edges of the ActiveX object to guides for automatic resizing of the ActiveX window that matches the player window's client area.


Availability:

First available in version 3.3 build 120.


Input Parameters:

object - The name of the ActiveX object used in the call to createObject.

topGuide - The name of the guide that the top edge of the ActiveX control should be aligned to.

leftGuide - The name of the guide that the left edge of the ActiveX control should be aligned to.

bottomGuide - The name of the guide that the bottom edge of the ActiveX control should be aligned to.

rightGuide - The name of the guide that the right edge of the ActiveX control should be aligned to.

topMargin - [Optional] - Distance in pixels that the top edge of the Activex object should maintain from the top guide.

leftMargin - [Optional] - Distance in pixels that the left edge of the ActiveX object should maintain from the left guide.

bottomMargin - [Optional] - Distance in pixels that the bottom edge of the ActiveX object should maintain from the bottom guide.

rightMargin - [Optional] - Distance in pixels that the right edge of the ActiveX object should maintain from the right guide.


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.setGuides( 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.setGuides( paramsObject );


Notes:

None.


Examples:

ssCore.ActiveX.setGuides(
{
    object:"MyBrowser",
    topGuide:"top",
    leftGuide:"left",
    bottomGuide:"bottom",
    rightGuide:"right",
    topMargin:10,
    leftMargin:10,
    bottomMargin:10,
    rightMargin:10
});