RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TComponent.SetDesigning Method

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

Pascal
procedure SetDesigning(Value: Boolean; SetChildren: Boolean = True);
C++
__fastcall SetDesigning(Boolean Value, Boolean SetChildren = True);

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. 

 

Copyright(C) 2009 Embarcadero Technologies, Inc. All Rights Reserved.
What do you think about this topic? Send feedback!