RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
HTTPProd.THTMLTagEvent Type

THTMLTagEvent is the type for event handlers that translate HTML-transparent tags into sequences of valid HTML.

Pascal
THTMLTagEvent = procedure (Sender: TObject; Tag: TTag; const TagString: string; TagParams: TStrings; var ReplaceText: string) of object;
C++
(Sender: TObject; Tag: TTag; const TagString: string; TagParams: TStrings; var ReplaceText: string) ( THTMLTagEvent)();

Sender is the page producer component that is translating an HTML template that contains HTML-transparent tags. 

Tag indicates the type of HTML-transparent tag that was encountered in the HTML template. It indicates the type of translation the event handler should perform to convert the HTML-transparent tag into a sequence of HTML commands. 

TagString is the tag name of the HTML-transparent tag. If the Tag parameter is tgCustom, TagString should be used to determine what conversion to perform.  

TagParams gives the parameter portion of the HTML-transparent tag. Each string in the TStrings object has the form ParamName=Value. Use the Names and Values properties of the TStrings object to parse these parameters. 

ReplaceText returns the converted HTML commands that result from the HTML-transparent tag. 

 

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