[Overview][Constants][Types][Classes][Procedures and functions][Variables][Index] Reference for unit 'Classes' (#rtl)

TComponent.ValidateRename

Called when a name change must be validated

Declaration

Source position: classesh.inc line 1623

protected procedure TComponent.ValidateRename(

  AComponent: TComponent;

  const CurName: String;

  const NewName: String

); virtual;

Description

ValidateRename checks whether NewName is a valid replacement for CurName for component AComponent. Two owned components of a component can not have the same name. If a child component with the same name is found, then an exception is raised.

See also

SetName

  

Write handler for Name property.

Name

  

Name of the component.

The latest version of this document can be found at lazarus-ccr.sourceforge.net.