RAD Studio VCL Reference
|
Determines if a form can rename one of its owned components.
procedure ValidateRename(AComponent: TComponent; const CurName: string; const NewName: string); override;
virtual __fastcall ValidateRename(TComponent * AComponent, const AnsiString CurName, const AnsiString NewName);
The ValidateRename method checks to see if a form 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 form's list, ValidateRename raises an EComponentError exception.
Copyright(C) 2008 CodeGear(TM). All Rights Reserved.
|
What do you think about this topic? Send feedback!
|