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
Locking controls
TFormDesigner allows to lock some controls to prevent them from changing their size and position. Locked control can be selected, but cannot be moved/resized. To lock control just add the control's name into the LockedControls list. There are three ways to do it:

At design time:

  1. Double-click the LockedControls property in the Delphi/C++ Builder Object Inspector and add the needed names
  2. Double-click TFormDesigner component and use the component editor
At runtime:
  1. Add the needed names into LockedControls list directly. ProtectedControls is a TStrings type, so just use the Add method.
    FormDesigner1.LockedControls.Add('Button1');
    

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