Ignore:
Timestamp:
Jul 20, 2011, 10:25:27 PM (13 years ago)
Author:
george
Message:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • Network/CoolWeb/WebServer/UWebPage.pas

    r237 r254  
    66
    77uses
    8   Classes, SysUtils;
     8  Classes, SysUtils, UHTTPServer, Controls;
    99
    1010type
    11   TOnProduceEvent = procedure of object;
     11  TOnProduceEvent = procedure(HandlerData: THTTPHandlerData) of object;
    1212
    1313  { TWebPage }
    1414
    15   TWebPage = class(TComponent)
     15  TWebPage = class(TDataModule)
    1616  private
     17    FCaption: string;
    1718    FOnProduce: TOnProduceEvent;
    1819  published
     20    property Caption: string read FCaption write FCaption;
    1921    property OnProduce: TOnProduceEvent read FOnProduce write FOnProduce;
    2022  end;
    2123
     24
     25  TWebPageClass = class of TWebPage;
     26
     27procedure Register;
     28
     29
    2230implementation
     31
     32procedure Register;
     33begin
     34  RegisterNoIcon([TWebPage]);
     35end;
    2336
    2437end.
Note: See TracChangeset for help on using the changeset viewer.