System.Classes.TComponent.SetDesigning

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

procedure SetDesigning(Value: Boolean; SetChildren: Boolean = True);

C++

void __fastcall SetDesigning(bool Value, bool SetChildren = true);

Properties

Type Visibility Source Unit Parent
procedure
function
protected
System.Classes.pas
System.Classes.hpp
System.Classes TComponent

Description

Ensures that components inserted at design time have their design-mode flag set.

SetDesigning is used internally by the Form designer. Do not call SetDesigning directly.

SetDesigning sets the csDesigning flag in the ComponentState property if Value is True; otherwise, it removes csDesigning.

If the SetChildren parameter is True, SetDesigning then calls the SetDesigning methods of any owned components, passing Value, so that the owned components' ComponentState properties are synchronized with the owner's.

The InsertComponent and RemoveComponent methods call SetDesigning for inserted or removed components to ensure that their design-mode flags are set properly.

See Also