Solved

ynchronized Movement of Forms

Posted on 1998-04-26
1
182 Views
Last Modified: 2010-04-06
I have two forms in my Application, both visible.

What is the easiest way to achive synchronized movement of both forms, when user moves one?
0
Comment
Question by:bor061297
1 Comment
 
LVL 5

Accepted Solution

by:
inter earned 50 total points
ID: 1337125
Add the following method to your forms(in private section) and when this event is generated do what you want:
..
    procedure WMMove(var M : TWMMove);message WM_MOVE;
..
procedure TForm1.WMMove(var M : TWMMove);
begin
  inherited;
  Form2.Left := Form1.Left; // do your processing
end;
(you may look to WM_MOVE from Win32 SDK help for more info but it is not neccessary)
Regards,
Igor
0

Featured Post

Gigs: Get Your Project Delivered by an Expert

Select from freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely and get projects done right.

Question has a verified solution.

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

Suggested Solutions

In this tutorial I will show you how to use the Windows Speech API in Delphi. I will only cover basic functions such as text to speech and controlling the speed of the speech. SAPI Installation First you need to install the SAPI type library, th…
Creating an auto free TStringList The TStringList is a basic and frequently used object in Delphi. On many occasions, you may want to create a temporary list, process some items in the list and be done with the list. In such cases, you have to…
This Micro Tutorial will give you a basic overview how to record your screen with Microsoft Expression Encoder. This program is still free and open for the public to download. This will be demonstrated using Microsoft Expression Encoder 4.
Microsoft Active Directory, the widely used IT infrastructure, is known for its high risk of credential theft. The best way to test your Active Directory’s vulnerabilities to pass-the-ticket, pass-the-hash, privilege escalation, and malware attacks …

813 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

Need Help in Real-Time?

Connect with top rated Experts

14 Experts available now in Live!

Get 1:1 Help Now