Solved

Button Save Position

Posted on 1997-06-03
2
293 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

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Objective: - This article will help user in how to convert their numeric value become words. How to use 1. You can copy this code in your Unit as function 2. than you can perform your function by type this code The Code   (CODE) The Im…
Introduction The parallel port is a very commonly known port, it was widely used to connect a printer to the PC, if you look at the back of your computer, for those who don't have newer computers, there will be a port with 25 pins and a small print…
Come and listen to Percona CEO Peter Zaitsev discuss what’s new in Percona open source software, including Percona Server for MySQL (https://www.percona.com/software/mysql-database/percona-server) and MongoDB (https://www.percona.com/software/mongo-…
In this video, viewers will be given step by step instructions on adjusting mouse, pointer and cursor visibility in Microsoft Windows 10. The video seeks to educate those who are struggling with the new Windows 10 Graphical User Interface. Change Cu…

691 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