SiteKiosk Documentation
One Step Back

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
    leftLong value that specifies the left region position.
    topLong value that specifies the top region position.
    rightLong value that specifies the right region position.
    bottomLong value that specifies the bottom region position.
    ewidthLong value that specifies the ellipse width.
    eheightLong value that specifies the ellipse height.
    amodeString 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 topVolver arriba

© 1997-2011 PROVISIO - Aventura, EEUU - Muenster, Alemania
Sitekiosk.es - Grupo24®, Madrid, España -