SiteKiosk Documentation
One Step Back

AddRect Method




The AddRect method adds a rectangle to the window region.


Syntax

    SKRegion.AddRect(left, top, right, bottom, addmode)
Parameters
    leftLong value that specifies the left region position.
    topLong value that specifies the top region position.
    rightLong value that specifies the right region position.
    bottomLong value that specifies the bottom region position.
    addmodeString that specifies the add mode.
Return Value
    None.
Remarks
    Possible addmodes are:

    "and", "diff", "or" and "xor".
Examples
    The following example creates an ellipse shaped window.

    <SCRIPT TYPE="text/javascript">
    window.external.InitScriptInterface();
    mydialog = SiteKiosk.SiteKioskUI.CreateHTMLDialog();
    mydialog.URL = "http://www.sitekiosk.com";
    mydialog.Title = true;
    dlgw = mydialog.Width;
    dlgh = mydialog.Height;
    myregion = SiteKiosk.SiteKioskUI.CreateRegion();
    myregion.AddEllipse(0, 0, dlgw, dlgh, "and");
    mydialog.Region = myregion.Handle;
    mydialog.ShowDialog();
    </SCRIPT>
    

Applies to
    SiteKiosk v6.0 (and later versions).

Back to topVolver arriba

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