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
Limit the control size
TFormDesigner allows to limit the size of the resized control by the OnSizeLimit event. The follow code shows how to limit the maximal and minimal size of all buttons on the form. The minimal size is 40x20 pixels and the minimal size is 80x40 pixels.
procedure TForm1.FormDesigner1SizeLimit(Sender: TObject;
  TheControl: TControl; var MinSize, MaxSize: TPoint);
begin
  if TheControl is TButton then
  begin
    MinSize:=Point(40,20);
    MaxSize:=Point(80,40);
  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