Renderiza e exibe o código HTML informado.
SetHtml( < cHtml >, [ cBaseUrl ] ) |
Nome | Tipo | Descrição | Obrigatório | Referência |
---|---|---|---|---|
cHtml | character | Deve conter o código HTML. | X | |
cBaseUrl | character | Usado para resolver URLs relativas no documento, como imagens referenciadas ou folhas de estilo. |
cBaseUrl := "https://www.w3schools.com/html/" cHtml:= "<!DOCTYPE html>"+; "<html>"+; "<head>"+; "<link rel='stylesheet' href='styles.css'>"+; "</head>"+; "<body>"+; "<h1>TWebEngine com SetHtml</h1>"+; "<p>Este HTML foi carregado através da função SetHtml!</p>"+; "<br>"+; "<img src='workplace.jpg' alt='Workplace'>"+; "</body>"+; "</html>" oWebEngine:setHtml(cHtml, cBaseUrl) |