I have still the problem that every time i start/restart the app i have to reposition the windows. I am using a UHD Monitor a below of that two 7 inch displays with 1024x600 resolution for the MFDs. I made the windows much smaller (669x530) and position the windows in the middle of the two small displays.
Can you explain what the different settings in mfd.ini means. e.g. displayonmonitor=0 or viewportw=613 etc.
I'll try my best.
I assume the app is able to write values in the MFD.INI file (if not then there is a general permissions issue).
Assuming that there are no permissions issues
These are the common values that change when you exit MFD Cougar. You can set these values up manually before executing so that the app sets the size and position accordingly.
VFlipCougar=0 <--- for cases where you have mounted the cougars upside down on your monitor!
WindowX=900 <---x position of the window
WindowY=10 <---- y position of the window
WindowW=700 <--- width of the window
WindowH=700 <---- height of the window
ViewPortX=0 <---- view port should be set to the same as the window dimensions
ViewPortY=0
ViewPortW=700 <--- windows width is 700, so viewport will be 700
ViewPortH=700
displayonmonitor=XXX is not actually in use. In the future it will be, but not right now.
Generally the viewport is the area on the window where the display is positioned. The display could be shifted by moving the viewport x or y. Typically this area must be the same size as the window dimensions (width and height values).
The system tries to place the windows onto a desktop monitor for display. To do this the app enumerates over the attached system monitors and checks that the WindowXYWH values actually fit inside - if they don't it moves the window to the main monitor.
I have noticed that aligning to the very edge of the monitor is not 100% reliable as the window could be considered off-screen. I have seen this with my own 8" monitor. Try moving the window fully inside the monitor boundary. When you exit, the MFD.INI should have been updated with the position and size of the window - as described above. If this is not happening, then we'll need to get to the bottom of that.
I have 4 monitors attached to my system, and I have arranged them to the left/right of the two main monitors, and also below the two main monitors, so I'm certain that the code can cope with various arrangements of monitor positions.
Can you post your actual MFD.INI file values?
Let me know how you get on.
o7