nexdome / ASCOM

NexDome ASCOM Driver
https://www.nexdome.com
MIT License
6 stars 7 forks source link

Status window gets "lost" #3

Closed NameOfTheDragon closed 4 years ago

NameOfTheDragon commented 5 years ago

Description

Some users have reported that the main status window "goes missing".

Everything is in fact working as designed. The window saves its location and stays in that location until moved by the user. However, if the user logs in using Remote Desktop Connection from another system with a larger or multi-monitor setup, then they move the status display to another monitor, then when they log into the observatory computer again the window may be off the screen. This can easily be recovered in a number of ways, but users find it confusing so something needs to change.

Workarounds

  1. Open ASCOM Profile Explorer and navigate to the driver's settings, and reset the MainFormLocation setting to 0,0 image
  2. Follow the instructions in this YouTube video: https://youtu.be/tuB3DbeE7wI

Proposed solution

It is proposed to create a new setting "Reset window position if it is off the screen". The default will be Enabled, and users can turn it off if they want the window to stay in the off-screen location. There is a very valid use-case for this behavior so we want to try to maintain the ability to work both ways.

When the setting is enabled, whenever the window loads, it will check its screen position to determine whether it is off the screen. If it is, then the location will be reset to (0,0).