Please ensure Javascript is enabled for purposes of website accessibility
Powered by Zoomin Software. For more details please contactZoomin

AVEVA™ InTouch HMI

Create user interface dialog boxes

  • Last UpdatedApr 09, 2025
  • 2 minute read

In a script, use the following commands to produce a user interface dialog box:

dim DlgBody as message;

dim DlgTitle as message;

dim Style as integer;

dim Result as integer;

DlgBody = "Do you want to open the valve ’MR-3-FF’?";

DlgTitle = "Confirm Opening Valve MR-3-FF";

Style = 48;

OLE_CreateObject(%WS,"Wscript.Shell");

result = %WS.Popup(DlgBody,1,DlgTitle,Style);

This example creates the following user interface dialog box.

User interface dialog box

The Style tagname determines which icon and which buttons appear on the dialog box. Use the following values:

Icon

Style

Value

(no icon)

no icon

0

Error icon

Error icon

16

Question mark icon

Question mark icon

32

Warning icon

Warning icon

48

Information icon

Information icon

64

To use a particular button, add one of the following values to the Style value:

Value

Style

0

Only OK button

1

OK and Cancel buttons

2

Abort, Retry and Ignore buttons

3

Yes, No and Cancel buttons

4

Yes and No buttons

5

Retry and Cancel buttons

6

Cancel, Try Again and Continue buttons

The Result tagname contains the button number the user selected. This can be used for conditional branching in your InTouch script. Following result codes are possible:

Result Value

Meaning

1

OK button was pressed

2

Cancel button was pressed

3

Abort button was pressed

4

Retry button was pressed

5

Ignore button was pressed

6

Yes button was pressed

7

No button was pressed

10

Try again button was pressed

11

Continue button was pressed

TitleResults for “How to create a CRG?”Also Available in