Promotic

How to use a PROMOTIC application on two or more displays

The PROMOTIC application can use two or more displays simultaneously. The simplest solution is to open one application workspace on each display in the form of PmaWorkspace object. If not defined differently, then the PROMOTIC system windows are displayed on the display with active PmaWorkspace. However this way you can also open independent windows or another applications.

1) Necessary default setting and Windows OS behavior

At first, it is necessary to achieve the following Windows OS multi display system behavior.
There must be a graphic card present in the system, able to connect two independent displays simultaneously. In the time of writing this manual (year 2010) both nVidia and AMD graphic cards and drivers were working right, including the integrated on-board graphic chips. The easiest procedure is to connect additional display into operational single display system. It is important not to do any modifications in the graphic card driver settings, not to swith on multi display/desktop support (nView, TwinView, cloning or virtual desktop). If necessary modify the settings only via the Windows OS settings window that is used for diplay resolution modification (accesible by the right mouse button clicking over the Windows OS desktop).
If the desktop is not displayed on the secondary display, then it is usually sufficient to reboot the computer or activate the display detection feature in driver. The secondary screen should display clean Windows OS desktop, with no icons and no taskbar. The secondary display is usually locaten on the right side (can be changed).
 
Caution! It is necessary to verify, that it is possible to use the mouse to move any non-maximized window to the secondary desktop (for example Windows Explorer). The window should also maximize correctly on the secondary desktop, (for example using the window maximize icon or window title bar left mouse button double-click). The general principle is, that any window is maximized on that screen where the larger portion of the window currently lies. If everything works as described above, then you can consider the Windows OS correctly configured.

2) Settings in the PROMOTIC application

For each display, it is necessary to create the PmaWorkspace object and configure them as application main window (see the "Main application window" configurator).
In order to let the PmaWorkspace object be displayed on the correct display, it is necessary to configure its default open position (see the "sFramePars default value" configurator).
For example if the primary display is placed on the left with the resolution of 1920x1200 and the secondary is located on the right, then it is sufficient to define the horizontal position of the left upper corner of the window i.e. "left:1920px;".
The window can be opened on the defined position either normaly or maximized (see the "Initial state (state)" configurator).
The same principle can be used also for displaying an independent PmaPanel window (see the "sFramePars default value" configurator).
See also:
- PmaWorkspace (object)
- Pm.CreateView (method)

History:
Pm8.00.07: The multi display application support has been improved (see How to use a PROMOTIC application on two or more displays):
- Some windows used to be displayed only on the main display eventhough the window was called from another display.
- PmaWorkspace.SetActive new method allows to set the active PmaWorkspace object and this way to define where to open a new separate window.
PROMOTIC 9.0.27 SCADA system documentation MICROSYS, spol. s r.o.

Send page remarkContact responsible person
Navigation:
 
 
- How to use a PROMOTIC application on two or more displays
 
 
- SVG
© MICROSYS, spol. s r.o.