|
|
|||||
|
THtm THtm is the basic HTML rendering engine element. Basically is a HTML tag, with a content that can be new sub-HTMLTags. The Thtm class have 4 mains members (properties). The HTML Type: Which start the HTML tag. (Ej.with lttd) ... and finish The params: Which are embebed in the HTML init tag. 'border=1' 'name="myname1" The contenido which are a string that can be read as HTML code. And the contents property which is a list of Thtm classes. Before any Gp response, there is created a 'structure tree' of Thtm elements in which each element can have more Thml elements as children. Then by the render procedure, this elements are writed in a stream as HTML code. The function is similar to IntraWeb TIWHTMLTag but there is some differences, use TlinkTag types instead strings . This is good for fast construction, (is better handle enum types than string types). The render instruction make the rest. Is more secure for typed bugs. If String construction, you can write some like mySH := tpHtml.createtag ('TABNLE'); // an error in 'n' for fast type, you can execute the program, but it don't work mySH := tgpHtml.createtag (ltTABNLE); // I can't compile the program, then I fix the error and run and work. Have some extension for handle integer constant like string. Example. mySH.addtagk (lth5,kstrWellcome); Say make a <h5> tag with the constant integer KstrWellcome (which represent a 'Wellcome' or 'Bienvenido' string it depending of language) Table extension for optimal code. mySH.addcell ('my cell') // instead mySH.Contents.AddTag('TD').Contents.AddText('my cell');
|
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
thtmladdr = class ( tgphtml ) TspyHtml extension for link tag <a>
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Teléfono: 978-610539 - Fax: 978-610861 -Trav.Agustina Aragón 1,1e 44002 Teruel ( España ).webmaster Copyright © 1997-2004 , [Multi-Informatica Teruel, S.L].La información contenida en este documento está sujeta a modificaciones sin previo aviso. Otros productos u organizaciones mencionadas aquí son marcas comerciales o marcas registradas propiedad de sus respectivas organizaciones o propietarios.
|