Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Dragging more than one form...

Status
Not open for further replies.

onrdbandit

Programmer
Mar 12, 2003
145
US
howdy,

I am working on an app with several forms that I managed to get them to "snap" to each other (thanx to a little assistance), but I want to be able to drag the forms together. When I drag one form, I want to also drag the others. Does anyone have any suggestions other than buying a component to do it for me?

thanks,
onrdbandit

(though free components are always nice)
 
Use that old trick with dragging form by clicking anywhere on form (sending a false message to the form that the caption is being clicked. Can't remember exactly what was the message, I'have to look, I hope you know what I'm talking about ;). Now, you just send the SAME message to every form and I think it should work!
(Not sure, this is the first thing to cross my mind :)
 
just a hack

put a TTimer on the second form

void __fastcall TForm2::Timer1Timer(TObject *Sender)
{
Form2->Top = Form1->Top;
Form2->Left = Form1->Left + 420;
Form2->Update ();
}

something to think about but probably to cumbersome.

tomcruz.net
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top