Calling a screen from the screen library

<< Click to Display Table of Contents >>

Manual > Screen Creation Guide > Using the Screen Library >

Calling a screen from the screen library

Implementing screen call processing in the screen library

There are several methods available for calling the screen library.

The following explains how to call up a screen from the screen library.

 

Processing method

How to implement

Call from the standard framework menu

 

The menu settings for the standard framework are configured from the system settings screen while the client is running. Please perform the following operations while both Panel Server and Panel Browser are running online.

 

The system settings screen can be accessed from the settings button (settings icon). The settings button is usually located in the information bar. If the information bar is not open, click the following icon (usually located in the top right corner of the screen).

 

p_prj_0050

 

Click the "Settings" icon located at the bottom of the information bar.

 

p_prj_0051

 

This will bring up a pop-up system settings screen where you can freely edit the display position, display contents, etc. of the standard framework menu.

 

(System settings screen)

p_prj_0052

 

Editing Instructions:

 

1.Select the Styling tab.

 

2.Select "Edit Menu" from the menu on the left.

 

3.Select "Main Menu" from the menu you want to edit.

 

4.From the list of tabs on the left, select the tab that contains the function you want to use.

 

5.The names of functions that can be called up will be displayed in a list, so use the left and right buttons etc. to add them to the menu display items and click "Save".

 

In addition, on the setting screen, you can specify the open parameters when displaying the screen library. By using the open parameters, for example, when displaying alarm history, you can specify an alarm filter or alarm level to narrow down the display to the relevant alarm history, or specify a start and end date range to display.

 

The open parameters are specified as follows:

 

p_prj_0054

 

Click the "..." selection button for the screen library call for which you want to specify open parameters.

 

(The example on the left shows the Alarm Summary option selected.)

 

 

 

The following settings screen will then be displayed.

 

p_prj_0055

 

From the screen, click the "Set Open Method" button.

 

 

 

The following settings screen will then be displayed.

 

p_prj_0056

 

You can specify open parameters from the list on the left.

 

For more information about how to use open parameters, see "About Open Parameters in Screen Libraries" in the Library Reference.

 

 

 

 

hint

For information about the types of standard functions in the standard framework and specifications for menus, layouts, etc., see "Standard Framework" in the Library Reference.

 

hint

To configure the above settings, "Information Bar" must be selected from the feature selection in the Standard Framework Wizard. For information on how to configure the Standard Framework Wizard, see "Creating a Standard Project" in the Monitoring System Construction Guide.

 

Use the Part Library Screen Display Call Button

Place a button to call the part library screen display on any form that will be the calling source.

 

p_prj_0048

 

Open the properties of the button part and specify the main form of the screen library you want to display as the target form (_TargetForm custom property).

The following is an example of the trend graph screen.

 

p_prj_0049

 

 

Furthermore, you can also use the dialog display component to display a screen library as a popup dialog.

 

p_prj_0403

 

 

hint

When calling a screen library using a script or a screen display call button, specify the main form name of the library. For example, for a trend screen library, specify "_Trend._Main". For the format of the main form name of each screen library, see the list in "Screen Library Reference".

 

 

Display the screen from a script (e.g. Button control)

Place Button control on any form that will be the caller.

 

p_prj_0047

 

Write the script in the OnMouseUp event of the button.

event OnMouseUp(button)
{
	::OpenViewForm("viewMain","_Trend._Main");
}

 

Key points for describing the process:

•Use the OpenViewForm root method (not OpenForm).

•Specify "viewMain" as the first argument.

•In the second argument, specify the main form name of the form to be called (e.g., folder name._Main).

 

 

hint

When calling a screen library from a script using Button control, you can specify the open parameters of the screen library. For details on how to use the open parameters, see "About the open parameters of the screen library" in the Library Reference.

 

hint

When calling a screen library using a script or a screen display call button, specify the main form name of the library. For example, for a trend screen library, specify "_Trend._Main". For the format of the main form name of each screen library, see the list in "Screen Library Reference".

 

Display a dialog from a script (e.g. Button control)

To display a screen library as a dialog, use the OpenModalDialog method or the OpenDialog method.

 

First, place Button control on any form that will be the caller.

 

p_prj_0047

 

Write the script in the OnMouseUp event of the button (below is an example of calling the camera registration screen with OpenModalDialog).

event OnMouseUp(button)
{
	::OpenModalDialog("_Video._VideoSetup");
}

 

Key points for describing the process:

•To specify open parameters, specify them as the third argument to the OpenModalDialog method.

•If you want to call it in a normal dialog rather than a modal dialog, use the OpenDialog method.