app opens off screen

  • Thread starter Thread starter LJB
  • Start date Start date
L

LJB

I recently added a save user setting feature to my app that saves the app
size and position on the users desktop. Now I have a user where the app
opens off the desktop. How can I check that the settings saved and then used
on opening the app are not outside the desktop area? This user has two
monitors with unequal resolution.

thanks
LJB
 
On startup read the monitor screen size from SystemInformation. Then
read the saved settings. If the saved settings are off screen then
ask the user if they want to move the app.

I don't see any point in asking the user. If the window would be positioned
in such a location that it would be completely invisible, I say move it to a
visible location immediately.
 
[...]
I don't see any point in asking the user. If the window would be
positioned
in such a location that it would be completely invisible, I say move it
to a
visible location immediately.

I generally prefer to let the user make the choice. I get annoyed by
programs that do things without asking me. YMMV.

That's not a bad general rule of thumb. But for many applications, they
are completely unusable unless the window is visible. For any of those
applications, moving the window without asking would be one of those valid
exceptions to the general rule of thumb.

Pete
 
Back
Top