SKRegion Object

The SKRegion object represents a window region.

Members Table

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

    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.

    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.
    The following example creates a HTML dialog with round corners.

    <SCRIPT TYPE="text/javascript">
    mydialog = SiteKiosk.SiteKioskUI.CreateHTMLDialog();
    mydialog.URL = "";
    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;

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

Back to top