RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TWebForm Class

TWebForm is the base class for Web items that create HTML forms in InternetExpress applications.

Pascal
TWebForm = class(TWebContainedContainerComponent, IWebContent, IWebComponentEditor, IScriptComponent, IHTMLForm);
C++
class TWebForm : public TWebContainedContainerComponent, public IWebContent, public IWebComponentEditor, public IScriptComponent, public IHTMLForm;

MidItems

Use TWebForm as a base class for components that generate the HTML statements defining a form that is contained in an HTML document. The list of Web items that generate content for an InternetExpress page producer can only contain descendants of TWebForm. 

In order to allow the InternetExpress page producer to use the HTML generated by the TWebForm descendant, TWebForm implements the IWebContent interface. In order to allow other Web items to generate javascript that refers to form elements, TWebForm implements the IHTMLForm interface. 

Do not create instances of TWebForm. TWebForm relies on an abstract or, in C++ terminology, pure virtual method to generate the HTML form. Instead, create descendants of TWebForm such a TDataForm or TQueryForm

 

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