Jump to content


Photo

UniHTMLFrame1 .. background color


  • Please log in to reply
4 replies to this topic

#1 erich.wanker

erich.wanker

    Advanced Member

  • uniGUI Subscriber
  • PipPipPipPip
  • 539 posts
  • LocationEurope / Austria / Salzburger Land / Bad Hofgastein

Posted 07 February 2018 - 03:59 PM

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

  • 0

Best Regards

Erich

 

Uses:

UniGui Version 1.0.0.1425

Delphi XE4 Professional 

ReportBuilder 15 / Update 18

Zeos7  / Firebird 2.5

 

Testserver:

Win10 32bit german / Apache 2.4.3 mod_isapi 

 

MyBaby:

Maintenance Software

 

 

... i ♥ uniGUI


#2 Delphi Developer

Delphi Developer

    Advanced Member

  • Moderators
  • 5177 posts

Posted 07 February 2018 - 05:34 PM

Hi Erich,

 

I couldn't reproduce your issue, can you make a simple testcase for this ?!

 

Best regards,


  • 0

#3 mos

mos

    Advanced Member

  • uniGUI Subscriber
  • PipPipPipPip
  • 166 posts

Posted 27 February 2018 - 05:01 AM

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;

  • 0

#4 gussmarcaro

gussmarcaro

    Newbie

  • Members
  • Pip
  • 5 posts
  • LocationCatanduva, São Paulo, Brasil

Posted 26 April 2018 - 06:11 PM

I could not either !!!


  • 0

#5 mos

mos

    Advanced Member

  • uniGUI Subscriber
  • PipPipPipPip
  • 166 posts

Posted 09 July 2018 - 06:22 AM

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.


  • 0




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users