KB-35479: Closing two windowed screens at the same time.

Question:

How can I close two windowed screens at the same time?

Solution:

To do so, follow these steps:

  1. Create an internal tag in the Viewer called ScreenControl;
  2. Create three screens: InitialScreen, Screen1 (windowed), and Screen2 (windowed);
  3. On InitialScreen, create a button to call Screen1. On this button, you must create an OpenScreen pick and set a nonexistent name to the frame where the Screen1 will open;
  4. On Screen1, perform the same settings of the previous exercise to call Screen2;
  5. On Screen2, create a button to close both Screen1 and Screen2. On the button, create a script that sets ScreenControl tag’s value as True, and use Screen2’s Close method;
  6. On Screen1, you must create a user event that is activated when ScreenControl tag’s value is True. In this event, create a script that sets ScreenControl tag’s value as False and use Screen1’s Close method.
See the attached sample application for further details.

Attachments:

Sample

Print Friendly, PDF & Email

Este artigo foi útil? Was this helpful?

Classificação média - Average rating 0 / 5. Count: 0

,

Deixe seu Comentário

Seu endereço de e-mail não será publicado. Campos marcados com asterisco são obrigatórios *