SKRegion Object



 
The SKRegion object represents a window region.


Members Table

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

    Members
    Properties Description
    Handle Handle to the region.
    Methods Description
    AddEllipse Adds an ellipse to the region.
    AddRect Adds an rectangle to the region.
    AddRoundRect Adds a round cornered rectangle to the region.
    LoadFromFile Loads 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 top