Someone asked if I could color the column labels of a particular view a color, and if I could color the background color of the various obj-attr values in the view, based on attribute values.
llandale - Tue Oct 20 14:59:16 EDT 2009 |
Re: Color column labels and attribute backgrounds It is possible to highlight text in various colors, in a Layout DXL column, with use of the \\highlight Rich Text tags (also need a Color Table). The following thread gives some clues and examples: https://www.ibm.com/developerworks/forums/thread.jspa?messageID=14272423 With canvases, you could probably simulate columns... but would probably take quite a bit of work. |
Re: Color column labels and attribute backgrounds djakad - Tue Oct 20 17:20:25 EDT 2009 As for canvases, I have attached a small script I wrote some time ago to display attribute values on a coloured background, based on an enumerated attribute value. At the end you will find three examples on how to use it. It was a bit tricky to get proper line breaks in, and to add additional line breaks when the text is longer than the canvas width. Then, in this case, you don't want the extra line breaks to appear within words. Well, it works for me, but I can't guarantee it works in all cases. And it uses strings, so if you get memory problems, it might be worth converting it into using buffers. Note that text on canvas columns does neither export into Excel nor into Word! Regards, Peter Attachments attachment_14307161_canvas.inc |