RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
IDesignerHook.ValidateRename Method

Restricts the names that can be given to components on the form that is being designed.

Pascal
procedure ValidateRename(AComponent: TComponent; const CurName: string; const NewName: string);
C++
__fastcall ValidateRename(TComponent * AComponent, const AnsiString CurName, const AnsiString NewName);

Call ValidateRename to determine if the component specified by AComponent, which currently has the name specified by CurName, can be renamed to the string specified by NewName. This method is usually called by the form's ValidateRename method to provide tighter restrictions on renaming, such as prohibiting reserved words. 

 

Copyright(C) 2008 CodeGear(TM). All Rights Reserved.
What do you think about this topic? Send feedback!