Hi, Since the IDE Messages Window component changed to a Treeview, the OnCustomDrawItem code doesn't work any more. More specifically, the Red, Green and Blue text for user defined hints ($Warning, $Note, etc) doesn't work any more - it always paints in black. See attached image.
I tried to fix this myself, but can't see what the problem is. I placed debugln() entries in the msview.pp unit and the OnCustomDrawItem function does execute. It also does enter the if block checking that State doesn't contain Selected. The only thing I can think of, is that the Treeview.Canvas.Font.Color is ignored somewhere in the painting process. I'm using Lazarus 0.9.21 (latest svn revision) under Linux with GTK1 widgetset. -- Graeme Geldenhuys There's no place like S34° 03.168' E018° 49.342'
messages.png
Description: PNG image
