Skip to main content



      Home
Home » Eclipse Projects » NatTable » How to paint cell background for Nattable based one RichtextPainter,
How to paint cell background for Nattable based one RichtextPainter, [message #1870581] Tue, 03 September 2024 11:14 Go to next message
Eclipse UserFriend
Hi,

I working on an eclipse view that contains a Nattable widget. I try to format the cells using RichTextCellPainter. Somehow I don't succeed to fill the background of the cell completely. I'm providing the painter with 'html' like:
<span style = "color: rgb(0,0,0); background-color: #C1E4FE">foo bar </span>


As shown in the (somewhat obfuscated) example in the attachment, the background color is only applied to the extent of the rendered text. The rest of the cell is still 'gray'.

Any ideas how to paint the full background? Though the fontcolor might vary within the cell, the cell's background always consists of exactly one color.

Regards,
Wilbert
  • Attachment: example.png
    (Size: 10.56KB, Downloaded 58 times)
Re: How to paint cell background for Nattable based one RichtextPainter, [message #1870662 is a reply to message #1870581] Wed, 04 September 2024 14:00 Go to previous message
Eclipse UserFriend
Wrap the RichTextCellPainter with a BackgroundCellPainter

And please ask questions at GitHub
Previous Topic:Get original mouse coordinates when opening context menu in headers
Goto Forum:
  


Current Time: Fri May 16 08:23:09 EDT 2025

Powered by FUDForum. Page generated in 0.29892 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top