Solved

ynchronized Movement of Forms

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

How to improve team productivity

Quip adds documents, spreadsheets, and tasklists to your Slack experience
- Elevate ideas to Quip docs
- Share Quip docs in Slack
- Get notified of changes to your docs
- Available on iOS/Android/Desktop/Web
- Online/Offline

Join & Write a Comment

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…
Hello everybody This Article will show you how to validate number with TEdit control, What's the TEdit control? TEdit is a standard Windows edit control on a form, it allows to user to write, read and copy/paste single line of text. Usua…
Sending a Secure fax is easy with eFax Corporate (http://www.enterprise.efax.com). First, Just open a new email message.  In the To field, type your recipient's fax number @efaxsend.com. You can even send a secure international fax — just include t…
In this tutorial you'll learn about bandwidth monitoring with flows and packet sniffing with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're interested in additional methods for monitoring bandwidt…

747 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