|
RAD Studio VCL Reference
|
Ensures that renaming an owned component does not create name conflict.
procedure ValidateRename(AComponent: TComponent; const CurName: string; const NewName: string); virtual;
virtual __fastcall ValidateRename(TComponent * AComponent, const AnsiString CurName, const AnsiString NewName);
ValidateRename checks to see if a component can rename one of its owned components, passed in AComponent, from its current name (CurName) to the string passed in NewName. If AComponent is nil (Delphi) or NULL (C++) or NewName is already the name of a component in the Components list, ValidateRename raises an EComponentError exception.
ValidateRename is used internally when the Name property is modified. It is not necessary to call it directly.
|
Copyright(C) 2009 Embarcadero Technologies, Inc. All Rights Reserved.
|
|
What do you think about this topic? Send feedback!
|