Jump to content
uniGUI Discussion Forums
Sign in to follow this  
erich.wanker

UniHTMLFrame1 .. background color

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

Share this post


Link to post
Share on other sites

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;

Share this post


Link to post
Share on other sites

Hi Delphi Developer,

 

  Any update on this as I need to be able to set the background colour of the UniHTMLFrame?

 

Delphi XE2

UniGui Complete Professional: 1466.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×