SiteKiosk Documentation
One Step Back

SetPosition Method




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


Syntax

    SKHtmlDialog.SetPosition(left, top, width, height)
Parameters
    leftLong value that specifies the horizontal position.
    topLong value that specifies the vertical position.
    widthLong value that specifies the width.
    heightLong 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 topVolver arriba

© 1997-2011 PROVISIO - Aventura, EEUU - Muenster, Alemania
Sitekiosk.es - Grupo24®, Madrid, España -