SiteKiosk Documentation
One Step Back

SKRegion Object




The SKRegion object represents a window region.


Members Table

    The following table lists the members provided by the SKRegion object.

    Members
    PropertiesDescription
    HandleHandle to the region.
    MethodsDescription
    AddEllipseAdds an ellipse to the region.
    AddRectAdds an rectangle to the region.
    AddRoundRectAdds a round cornered rectangle to the region.
    LoadFromFileLoads a region from a file.

Remarks
    This object is returned by the CreateRegion method. Use the SKRegion object to handle the new window region.

    Note that the path of a file using SiteKiosk objects must be allowed in the
    SiteKiosk configuration (Security -> Access -> URL's With Script Permission)
    if it is not a browser skin file.
Examples
    The following example creates a HTML dialog with round corners.

    <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.AddRoundRect(0, 0, dlgw, dlgh, 12, 12, "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 -