Jump to content
dummzeuch

Remembering an Application’s Size and Position on Multiple Screens

Recommended Posts

My 2Cents:

Storing all kinds of (overall) useless information into the registry is a nuisance. It is like back in the day where everyone stored useless information into the win.ini increasing boot time severely. Which forced MS to up the game and introduce the registry.  Of course, the registry is much more performant and flexible, but it still is actually something used by the OS for the OS. It is MSs fault to actually let all the hoodlums in and manipulate it. Nowadays reading and writing registry items can cost a noticeable amount of time. And considering that 90% of the applications that write into the registry don't bother deleting their entries at deinstallation time (at the latest), it is full of dead stuff (hence the registration cleaners, that tend to break stuff). So I applaud the idea to store size and position information into a simple, easy to find and delete, file.

  • Like 1

Share this post


Link to post

Hm, it just occurred to me, that with roaming profiles, the registry entries are not restricted to the same computer but will move with the user to possibly different computeres with different monitor setups.

 

In the environment I am currently working, we don't use roaming profiles, so I tend to forget.

Share this post


Link to post

Thomas,

I use INI files as some of my apps generate a lot of persistent information. I was put off the registry in the early days of 32-bit OSs due to the number of corrupts that occurred (not necessarily to me). Additionally, I can backup the ini files and restore them if needed - not so easy with the registry. Lastly, my INI files contain the username and computername so would not be used on another machine is roaming profiles were actually roamed (my company stop this very soon after it was available due to the increased login and logoff times.

Share this post


Link to post
27 minutes ago, David Hoyle said:

I use INI files as some of my apps generate a lot of persistent information. I was put off the registry in the early days of 32-bit OSs due to the number of corrupts that occurred (not necessarily to me).

That's why I wrote "All the above does not apply to other settings of a program, you might still want to store these in INI files to make them portable." (or for backup).

I don't consider the window positions important enough to backup them ("back them up"?).

I don't use the registry for anything else though, only for the window positions for exactly that reason.

 

(GExperts is an exception to this rule which I have often considered changing but never came around doing.)

Share this post


Link to post

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×