Jump to content

UniHTMLFrame1 .. background color


erich.wanker

Recommended Posts

how can i set the background color of UniHTMLFrame1 ?

 

(all my tryings are killing the scrollbar of UniHTMLFrame1)

 

and 

 

UniHTMLFrame1.HTML.Append('<html>');
UniHTMLFrame1.HTML.Append('<body bgcolor="#e7e7e7">');
UniHTMLFrame1.HTML.Append('</body>');
 
has no effect
Link to comment
Share on other sites

  • 3 weeks later...

Hi Delphi Developer,

 

  I just stumbled across this issue and found this post.

 

  I tried the following HTML code as an example but the background color of the HTMLFrame does not change

procedure TMainForm.UniButton1Click(Sender: TObject);
begin
    FHTMLFrame.HTML.Text := '<html> ' +
      ' <body style="background-color:powderblue;"> ' +
      ' <h1>This is a heading</h1> ' +
      ' <p>This is a paragraph.</p> ' +
      ' </body> ' +
      ' </html> ';
end;
Link to comment
Share on other sites

  • 1 month later...
  • 2 months later...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...