Solved

ynchronized Movement of Forms

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

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering 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

Suggested Solutions

This article explains how to create forms/units independent of other forms/units object names in a delphi project. Have you ever created a form for user input in a Delphi project and then had the need to have that same form in a other Delphi proj…
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…
Exchange organizations may use the Journaling Agent of the Transport Service to archive messages going through Exchange. However, if the Transport Service is integrated with some email content management application (such as an antispam), the admini…
Attackers love to prey on accounts that have privileges. Reducing privileged accounts and protecting privileged accounts therefore is paramount. Users, groups, and service accounts need to be protected to help protect the entire Active Directory …

732 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