Applies To:
  • CitectSCADA 5.xx, 6.xx
  • CitectHMI 5.xx, 6.xx

I want to create a Popup so that it will automatically close when I click back on my main page, or anywhere else.

A solution is to add the following Cicode to the 'While Page Shown' Event of the popup page.

IF WinNumber() <> WinGetFocus() THEN WinFree() END

This will compare the Window number of the popup, to the Window number of the currently selected window, if they differ, the Popup will be closed.


autoclose auto close automatically focus popup