38.5.3.1 Sample Overview - Sample to retrieve the WinGP status and change the settings (Handling API)

[Status 1] tab: Switching to [Information/End] tab allows you to retrieve the WinGP status and change the settings.

[Status 1] tab

[Start Status] area. Click the [Get] button. The WinGP startup state is displayed as one of the six shown below.

[Screen] area. Click the [Get] button to display the screen number currently displayed in WinGP. Also, the screens available for display in WinGP are listed in the ComboBox. In the list, select the screen you are switching to and click the [Set] button to switch the screen displayed in WinGP.

[Status 2] tab

[Screen State] area. Click the [Get] button. The WinGP display state is displayed in the ComboBox as one of the three shown below.

Change the display in the ComboBox and click the [Set] button to change the display state. Settings for X and Y coordinates, width (Width), and height (Height) are also available only in the Window mode.

[Information/End] tab

In [Project Information] on the top left, click the [Get] button. This displays the following WinGP information.

ProjectName

Project file name

Comment

Project title

Created date

Project creation date

Last Update

Project last update date

HMI Editor

GP-Pro EX version

Person

Creator

[[WinGP Ends With Query] button displays a confirmation message asking "Do you want to exit?". Click [Yes] to exit WinGP.