Delphi/CB
•  Greatis •  Security •  AppDatabase •  Utilities •  Visual Basic • .NET •  just4fun
Delphi / C++ Builder
Components, utilities and tips for Delphi and C++ Builder developers
More info
Form Designer FAQ
Form Designer Home
Delphi Components
See also
Products
Object Inspector
Runtime Fusion
Print Suite
Commented Image
Image Editor  new!
Delphi Toys
Ultimate Pack  hot!

FAQs
Object Inspector FAQ
Print Suite FAQ
Image Editor FAQ

Links
Software for .NET
Software for VB 6
Delphi Tips & Tricks

Services
Outsourcing
Grouping the controls on the form
The controls on the designed form can be grouped by the AddControl event. For instance, if you have the edit and the label above the edit and want to move them together, just use the follow code.
procedure TForm1.FormDesigner1AddControl(Sender: TObject;
  TheControl: TControl);
begin
  with FormDesigner1 do
  begin
    if TheControl=Label1 then AddControl(Edit1);
    if TheControl=Edit1 then AddControl(Label1);
  end;
end;

Greatis Software Greatis | Security | AppDatabase | Utilities | Delphi/CB | Visual Basic | .NET | just4fun

Contacts | Add to Favorites | Recommend to a Friend | Privacy Policy | Copyright © 1998-2008 Greatis Software