RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TWebControlGroup.AddElements Method

Used internally to generate any script declarations needed by the group of controls.

Pascal
procedure AddElements(AddIntf: IAddScriptElements);
C++
__fastcall AddElements(IAddScriptElements AddIntf);

The page producer calls AddElements when it generates the block of declarations for the script language it uses. This method allows the generated group of controls to use classes and methods in the scripting language of the page producer. 

AddElements calls on the virtual ImplAddElements method, which uses the provided interface to return its declarations. Each TWebControlGroup descendant overrides ImplAddElements to add any declarations it needs. 

 

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