CreateRegion Method
The CreateRegion method creates a region.
Syntax
[obj=] SiteKiosk.SiteKioskUI.CreateRegion()
|
Return Value
Returns a SKRegion object that represents the new region.
Remarks
Regions are visible parts of windows.
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