RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TAbstractControlRequirements.DefineFunction Method

Adds the declaration of a function to those that this control requirements object stores.

Pascal
procedure DefineFunction(const AName: string; const ABody: string); virtual; abstract;
C++
virtual __fastcall DefineFunction(const AnsiString AName, const AnsiString ABody) = 0;

DefineFunction stores the declaration of a function that has the name AName, where ABody is the text of the function body. 

AName is the name of the function. This name is one of a standard set that the adapter form knows to call under specific circumstances. For example, the name can be the standard name of the function to generate an HTML button. 

ABody is the body of the specified function. This value is typically customized to reflect the properties of a specific control in the form. 

 

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