Geo SCADA Knowledge Base
Access vast amounts of technical know-how and pro tips from our community of Geo SCADA experts.
Link copied. Please paste this link to share this article on your social media post.
Originally published on Geo SCADA Knowledge Base by Anonymous user | June 09, 2021 10:58 PM
Changes for Geo SCADA 2019
The ViewX StartupConfiguration.xml allows you to define the monitor origins via the new 'MonitorOrigin' attribute. This supersedes the existing 'Monitor' attribute (which can be removed; if left in the file, it will be ignored)
'MonitorOrigin' is defined as a point attribute. An extract from my StartupConfiguration.xml showing its use is as follows:
<PrimaryWindowContainer
MonitorOrigin="0,0"
LegacyHead="1"
DisplayMode="Maximized"
AlarmBannerDisplayState="DockedTop"
AlarmBannerPersistSettings="true"
MinimizeRibbon="false" />
<SecondaryWindowContainer
Name="Head 2"
MonitorOrigin="-1920,327"
LegacyHead="2"
DisplayMode="Maximized"
ReapplyOnLogOn="true"
AlarmBannerDisplayState="DockedBottom" />
<SecondaryWindowContainer Name="Head 3"
MonitorOrigin="1920,0"
LegacyHead="3"
DisplayMode="Maximized"
ReapplyOnLogOn="true"
AlarmBannerDisplayState="Fill"
OpenInWindow="Primary" />
Interpreting the above, the primary container is my middle monitor (0,0) 'Head 2' is on the left (has a negative X value) and 'Head 3' is on the right (has a positive X value).
Note that monitor 'Head 2' has a positive Y value of 327, this is because this left-hand monitor's top line is 327 pixels lower down than the primary monitor.
Note that the 'LegacyHead' attribute is left unchanged. This is what the mimic/script 'Head()' function uses so its functionality still behaves as before. The 'Monitor' attribute was only used to try and replicate the monitor numbers shown in the Windows Display settings. (Which does not work reliably).
A word of warning, if the user updates their monitor configuration in the Windows Display settings by repositioning monitors, then you will need to get the updated list of monitor origins and update the StartupConfiguration.xml file, otherwise ViewX will display its usual 'Monitor configuration has changed' message on startup and move any window containers configured to show on the repositioned monitor/s onto the primary monitor.
This simple .exe program will advise the co-ordinates of the upper left origin of all monitors connected to the PC.
It is attached below.
Go: Home Back
Link copied. Please paste this link to share this article on your social media post.
Create your free account or log in to subscribe to the board - and gain access to more than 10,000+ support articles along with insights from experts and peers.