LoadFromFile Method
The LoadFromFile method loads a window region from a file.
Syntax
SKRegion.LoadFromFile(filename)
|
Parameters
filename |
String that specifies the region file name. |
Return Value
Remarks
This example xml file defines a region:
<region>
<rect x1="432" y1="203" x2="484" y2="253" />
<rect x1="432" y1="203" x2="484" y2="253" />
<roundrect x1="432" y1="203" x2="484" y2="253" />
<polygon>
<point x="788" y="99"/>
<point x="893" y="99"/>
<point x="893" y="200"/>
<point x="828" y="200"/>
<point x="828" y="148"/>
<point x="788" y="148"/>
</polygon>
<roundrect x1="25" y1="21" x2="967" y2="50" widthellipse="23" heightellipse="23" />
<roundrect x1="35" y1="0" x2="957" y2="60" widthellipse="23" heightellipse="23" />
</region>
Examples
The following example creates a HTML dialog with a region loaded from a file.
<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.LoadFromFile("myregion.xml");
mydialog.Region = myregion.Handle;
mydialog.ShowDialog();
</SCRIPT>
|
Applies to
SiteKiosk v6.0 (and later versions).
Back to top