Display_open_window_interface

Working with the "Display_open_window_interface"

Display_open_window_interface is a subcomponent that enable the programmer to open a view via program code.

The view will open on top of the current visualization; i.e. the functionality known as a pop-up window.

The instance constant root_view_to_open is used to select which view to open.

It is possible to select either a view for control instance (component or assembly; do not choose data types) or a drawing. 

The instance constant can be set at component level, assembly level or project level.

To open a view, use the command Display_Open_window_interface.open()

To close the view use the command Display_Open_window_interface.close()

To avoid opening the same view more than once, the .open command is ignored if the last command given was also a .open.

A component that include the Display_Open_window_interface can only be located in a device that has a display; i.e. the PD 688 or the PD 955 COPP PC with display.

By using a timer it is possible to keep the window open for a specified amount of time and then close it again.

NB! The user may close the window “manually” via the touch screen. In this case, a .close command is not sent and hence the program can only gain back control by issuing a .close-command before issuing a .open.

It is thus advisable to always send a .close command before sending a .open command.