18.01.2015 Views

Technical Reference Manual - InduSoft

Technical Reference Manual - InduSoft

Technical Reference Manual - InduSoft

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Screens and Graphics<br />

…<br />

[UsedControln]<br />

…<br />

The CLSID and Version settings are required for each ActiveX control, and they must match the<br />

ID and version of the actual control file(s) to which Codebase links. This allows a runtime station<br />

to check the control against those that are already registered. If the settings do not match, then the<br />

runtime station may unnecessarily download the same control again.<br />

If you don't know the CLSID and Version settings for an ActiveX control, you can find them<br />

in the registry key of an already installed and registered control. Search for the control file in<br />

HKEY_CLASSES_ROOT\CSLID in the Windows Registry.<br />

Also, the URL for the Codebase setting can be either absolute or relative to the Web server's "home"<br />

directory. For example:<br />

Codebase=http://server_address/AddOns/IndDateTimePick.ocx<br />

…or…<br />

Codebase=AddOns/IndDateTimePick.ocx<br />

Finally, the Regfile settings are required only if Codebase links to a .CAB file. If it does, then<br />

use one or more Regfile settings to name the specific files within the .CAB file that must be<br />

downloaded and registered.<br />

ActiveX controls are components designed according to a standard. Because <strong>InduSoft</strong> Web Studio is an<br />

ActiveX container, you can configure and run ActiveX controls in the screens created with IWS. ActiveX<br />

controls can provide the following interfaces:<br />

• Properties: Variables whose values can be read and/or written for your project (e.g., Object Color, FileName,<br />

URL, and so forth)<br />

• Methods: Functions from the ActiveX object that can be triggered by your project (e.g., open a dialog,<br />

execute a calculation, and so forth)<br />

• Events: Internal messages that can trigger the execution of expressions in your project (e.g., Mouse_Click,<br />

Download_Completed, and so forth)<br />

The name of the properties, methods and events supported by each ActiveX depends on its own<br />

implementation.<br />

There are two different ways to interface your project with the ActiveX control:<br />

• By using the ActiveX functions XGet(), XSet() and XRun()<br />

OR<br />

• By using the Object Properties window to configure the object<br />

Double-click on the ActiveX Control to open the Object Properties dialog.<br />

Object Properties: ActiveX Control<br />

The Object Properties window displays the name of the ActiveX control. Generally, each ActiveX control is<br />

either a *.dll or a *.ocx file registered in your local computer. You must assign a name (alias) to the ActiveX<br />

Page 212<br />

<strong>InduSoft</strong> Web Studio

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!