AddEllipse Method



 
The AddEllipse method adds an ellipse to the window region.


Syntax

    SKRegion.AddEllipse(left, top, right, bottom, addmode)
Parameters
    left Long value that specifies the left region position.
    top Long value that specifies the top region position.
    right Long value that specifies the right region position.
    bottom Long value that specifies the bottom region position.
    addmode String 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 top