AddRoundRect Method



 
The AddRoundRect method adds a round cornered rectangle to the window region.


Syntax

    SKRegion.AddRoundRect(left, top, right, bottom, ewidth, eheight, amode)
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.
    ewidth Long value that specifies the ellipse width.
    eheight Long value that specifies the ellipse height.
    amode String that specifies the add mode.
Return Value
    None.
Remarks
    Possible addmodes are:

    "and", "diff", "or" and "xor".
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