Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » NatTable » Font color for a substring in a cell(Need to highlight a part of cell value with different colors)
Font color for a substring in a cell [message #1801344] Thu, 17 January 2019 09:26 Go to next message
Shreya Suman is currently offline Shreya SumanFriend
Messages: 9
Registered: March 2017
Junior Member
In Nat Table, we are working on color coding the sub expressions in a large expression for better readability. We want to display each sub-expression with different color like in Microsoft excel.
We have seen coloring the entire cell but we wanted to know whether coloring a partial string within a cell is possible.
Re: Font color for a substring in a cell [message #1801349 is a reply to message #1801344] Thu, 17 January 2019 10:31 Go to previous message
Dirk Fauth is currently offline Dirk FauthFriend
Messages: 2704
Registered: July 2012
Senior Member
IIUC you want to format substrings inside a cell. That is only possible by using the RichTextCellPainter in the NatTable Nebula extension. Using this painter you can add HTML markups in the text which get interpreted accordingly by the painter.

But as of now the RichTextCellPainter does not support all features the default TextPainter has, e.g. text wrapping etc. But if that is not required the RichTextCellPainter is a good choice.
Previous Topic:Problem with Tree and Hide Row
Next Topic:ComboBox Multiselect/Use Checkbox question
Goto Forum:
  


Current Time: Thu Aug 22 18:27:18 GMT 2019

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

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

Back to the top