|
|
Protecting controls
TFormDesigner allows to protect some controls from designing. Protected control works as usual independently fro activity of TFormDesigner. To protect control just add the control's name into the ProtectedControls list. There are three ways to do it:
At design time:
- Double-click the ProtectedControls property in the Delphi/C++ Builder Object Inspector and add the needed names
- Double-click TFormDesigner component and use the component editor
At runtime:
- Add the needed names into ProtectedControls list directly. ProtectedControls is a TStrings type, so just use the Add method.
FormDesigner1.ProtectedControls.Add('Button1');
|
|