RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TCustomLoginFormAdapter.ImplCanAddFieldClass Method

Provides the underlying implementation for the CanAddFieldClass method.

Pascal
function ImplCanAddFieldClass(AParent: TComponent; AClass: TClass): Boolean; override;
C++
virtual __fastcall Boolean ImplCanAddFieldClass(TComponent * AParent, TClass AClass);

ImplCanAddFieldClass provides the underlying implementation of the CanAddFieldClass method that is introduced in TCustomAdapter. At design time, the Fields editor calls this method to determine what fields it can add to the login form adapter. 

AParent is the adapter that will act as a parent to the added field. 

AClass is the class of the proposed field. 

ImplCanAddFieldClass returns true if the login form adapter can act as a parent to a field of the specified class. 

In TCustomLoginFormAdapter, ImplCanAddFieldClass returns true if AClass is (or descends from) TAdapterPasswordField, TAdapterUserNameField or TAdapterNextPageField (the Password, UserName, or NextPage field). 

 

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