Jump to content

TuniHTMLMemo, transparent color ?


Roberto Nicchi

Recommended Posts

Hello,

I have this problem. You can replicate with the demo application (htmlEd project)

Inserte three lines in the memo.

Change the background color of one line (the second in my test).

The first and the third lines will have a white background and won't be transparent. Look below the HTML created by TuniHTMLMemo. The first line and the third line have background-color: rgb(255, 255, 255) that is white.

Is it possible to avoid this happens ?

I have tryed to set the htmlmemo.color property to clNone. Doesn't help.

thanks

Roberto

Unigui ver. 1.90.0.1561

<span style="background-color: rgb(255, 255, 255);">Row 1</span><div style=""><span style="background-color: rgb(255, 0, 0);">Row 2</span></div><div style="background-color: rgb(255, 255, 255);">Row 3<br><div><b><br></b></div></div>

Link to comment
Share on other sites

2 hours ago, Roberto Nicchi said:

Because the email created with this html is visualized by Mozilla Thunderbird in this way, and is not very fancy.

email.PNG.47c789ed3658d7eb1ceebef8a8efd20e.PNG

I think that the background should be uniform (all white or all gray).

thanks

Roberto

Ok, seems i have solved chaing the HTML that comes from the memhtml and adding a tag to set the background.

 

emailHtmlText:='<html><body style="background-color:white;">MemoHtmlText+'</html>

Link to comment
Share on other sites

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...