app opens off screen

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
 
J

Jeff Johnson

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.
 
P

Peter Duniho

[...]
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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top