RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TCustomQueryForm.ImplCanAddClass Method

Provides the underlying implementation for the CanAddClass method.

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

The CanAddClass method calls ImpleCanAddClass to determine whether the TWebForm descendant can add a component of type AClass to its WebComponents property list. AParent is the TWebForm instance to which the component will be added. 

In TWebForm, ImplCanAddClass is abstract or, in C++ terminology, pure virtual. TWebForm descendants must override ImplCanAddClass to indicate what types of Web Items they can use when generating their HTML forms. 

 

Copyright(C) 2009 Embarcadero Technologies, Inc. All Rights Reserved.
What do you think about this topic? Send feedback!