Solved

Button Save Position

Posted on 1997-06-03
2
292 Views
Last Modified: 2010-04-06
My question:
I'm talking about a button (e.g. btnSavePos : TButton) which should be implemented into a Delphi2.0-application in order to give a chance to the user to save the actual window-position of his application so that it would start next time at the same position and with the same window-size as it has at that very moment. How could I program this button?
I know that this is a combination with any of Windows95-properties but how could I use these in my Delphi-application?

0
Comment
Question by:gthomas
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 

Accepted Solution

by:
richweed earned 50 total points
ID: 1336791
You can save the form properties top, left, width & height to the registry and read it back again when you restart the program.

Otherwise you can save them to a configuration file. Personally I prefer this method, but it's up to you!

Do you know how to save text values to disk?

If not, I'll give you some code.

Cheers
Richard
0
 

Author Comment

by:gthomas
ID: 1336792
Please, Richard, tell me how to save top, left, width and height to the registry or to a configuration file.
TIA
0

Featured Post

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

The uses clause is one of those things that just tends to grow and grow. Most of the time this is in the main form, as it's from this form that all others are called. If you have a big application (including many forms), the uses clause in the in…
In my programming career I have only very rarely run into situations where operator overloading would be of any use in my work.  Normally those situations involved math with either overly large numbers (hundreds of thousands of digits or accuracy re…
The Email Laundry PDF encryption service allows companies to send confidential encrypted  emails to anybody. The PDF document can also contain attachments that are embedded in the encrypted PDF. The password is randomly generated by The Email Laundr…

734 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question