Solved

ynchronized Movement of Forms

Posted on 1998-04-26
1
181 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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
delphi custom sort exception 6 137
Print Graphic and Text to Epson TM-T88v 12 185
SUM 2 INTEGER ARRAYS INTO 1 10 93
tvirtualstringtree freeze when load too manny images 10 53
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…
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…
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.
Hi friends,  in this video  I'll show you how new windows 10 user can learn the using of windows 10. Thank you.

862 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

23 Experts available now in Live!

Get 1:1 Help Now