?
Solved

Button Save Position

Posted on 1997-06-03
2
Medium Priority
?
294 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 100 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: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying 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

Have you ever had your Delphi form/application just hanging while waiting for data to load? This is the article to read if you want to learn some things about adding threads for data loading in the background. First, I'll setup a general applica…
Introduction I have seen many questions in this Delphi topic area where queries in threads are needed or suggested. I know bumped into a similar need. This article will address some of the concepts when dealing with a multithreaded delphi database…
In this video, Percona Solution Engineer Rick Golba discuss how (and why) you implement high availability in a database environment. To discuss how Percona Consulting can help with your design and architecture needs for your database and infrastr…
How to fix incompatible JVM issue while installing Eclipse While installing Eclipse in windows, got one error like above and unable to proceed with the installation. This video describes how to successfully install Eclipse. How to solve incompa…
Suggested Courses
Course of the Month10 days, 6 hours left to enroll

764 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