RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TCustomLoginFormAdapter.ImplCanAddActionClass Method

Provides the underlying implementation for the CanAddActionClass method.

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

ImplCanAddActionClass provides the underlying implementation of the CanAddActionClass method that is introduced in TCustomAdapter. At design time, the Actions editor calls this method to determine what actions it can add to the login form adapter. 

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

AClass is the class of the proposed action. 

ImplCanAddActionClass returns true if the login form adapter can act as a parent to an action of the specified class. 

In TCustomLoginFormAdapter, ImplCanAddActionClass returns true if AClass is (or descends from) TLoginFormAdapterLoginAction (the Login action). 

 

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