SetPosition Method



 
The SetPosition method sets the position and size of the dialog.


Syntax

    SKHtmlDialog.SetPosition(left, top, width, height)
Parameters
    left Long value that specifies the horizontal position.
    top Long value that specifies the vertical position.
    width Long value that specifies the width.
    height Long value that specifies the height.
Return Value
    None.
Remarks
    The position and size can be set before or after showing the dialog.
Examples
    The following example creates a dialog and sets its size and position.

    <SCRIPT TYPE="text/javascript">
    window.external.InitScriptInterface();
    mydialog = SiteKiosk.SiteKioskUI.CreateHTMLDialog();
    mydialog.Title = true;
    mydialog.URL = "http://www.myaddress.com";
    mydialog.SetPosition(100, 100, 400, 200);
    mydialog.ShowDialog();
    </SCRIPT>

Applies to
    SiteKiosk v5.5 (and later versions).

Back to top