RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TWebPageModule Class

TWebPageModule is a WebSnap module that generates a page.

Pascal
TWebPageModule = class(TCustomWebPageModule);
C++
class TWebPageModule : public TCustomWebPageModule;

Use TWebPageModule in a WebSnap application to hold all the components needed for generating a specific Web page. When you use the WebSnap page module wizard to create a TWebPageModule descendant, the wizard adds a page producer to the module. The page producer generates the content of the Web page and adds code to the unit it creates (in Delphi, the code is added to the initialization section; in C++, it is added to a #pragma startup). The added code registers the TWebPageModule descendant with a factory object that the WebSnap application can use to create the Web page module. 

The page producer that the wizard adds to the Web page module becomes the value of the PageProducer property. If the PageProducer property is nil (Delphi) or NULL (C++), the Web page module can't generate the content of a Web page. Add additional components to the Web page module that assist the page producer in creating its content. Other modules in the WebSnap application can access any components you add to the Web page module, but typically Web page module components are intended only for internal use. 

 

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