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.

Appendix: Built-in Scripting Language<br />

Open<br />

Open is a built-in scripting function that opens a project screen.<br />

Function Group Execution Windows Embedded Thin Client<br />

Open Screen Asynchronous Supported Supported Supported<br />

Syntax<br />

Open(strScreen{ | ,optNumX1{ | ,optNumY1,optNumX2,optNumY2,optNumResizeFlag{ | ,optNumID{ |<br />

,optStrMnemonicList } } } })<br />

strScreen<br />

optNumX1<br />

optNumY1<br />

optNumX2<br />

optNumY2<br />

The name of the screen (not including the .scr extension) to be opened.<br />

Note: Some Web servers are case-sensitive. If you plan to deploy your project<br />

as a Web application, then you should use only lowercase letters for the screen<br />

name.<br />

The coordinates, in pixels, for the top-left (X1,Y1) and bottom-right (X2,Y2) corners of the screen.<br />

These are optional parameters. If no values are specified, then the default screen size and<br />

location are used. For more information, see Screen Attributes.<br />

Please note the following special circumstances:<br />

• You can open the screen at the mouse's current position by using Open( "screen", 1 ), or<br />

Open( "screen", 1, −1, −1, −1, … ) if the parameters at the end are needed.<br />

• If optNumX1 equals optNumX2 and optNumY1 equals optNumY2, then the default screen<br />

size is used but the screen is centered at (X1,Y1).<br />

• If optNumX2 is less than optNumX1 and/or optNumY2 is less than optNumY1, or if all four<br />

parameters are set to −1, then the parameters are ignored and the default screen size and<br />

location are used.<br />

optNumResizeFlag<br />

Specifies whether objects in the screen will be resized when the screen is opened:<br />

Value<br />

Description<br />

optNumID<br />

0 Screen objects will not be resized.<br />

1 Screen objects will be automatically resized to fit the new dimensions<br />

of the screen, as specified by the coordinates described above. The<br />

resizing is done at the moment the screen is opened, so if the user<br />

changes the screen size after the screen is opened, then the objects<br />

will not be resized again.<br />

This parameter is required if all four coordinates are specified.<br />

An ID or instance number to be assigned to the screen, because you can open multiple<br />

instances of the same screen file. (This ID is required when a screen is closed using the Close<br />

function.)<br />

This is an optional parameter. If no value is specified, then the default ID is 0.<br />

optStrMnemonicList<br />

Page 580<br />

<strong>InduSoft</strong> Web Studio

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

Saved successfully!

Ooh no, something went wrong!