I'm using treelistview from Benibela (GTK2). I have some questions:<div>- How to set the SelectedFont background color? SelectedFont.Color sets only the "pen" color, not the "brush" color</div><div>
- How to use the OnCustomRecordItemDraw to set a line's background color depending on its content ?<br><br><div class="gmail_quote">2012/9/13 Benito van der Zander <span dir="ltr"><<a href="mailto:benito@benibela.de" target="_blank">benito@benibela.de</a>></span><br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div bgcolor="#FFFFFF" text="#000000"><div class="im">
<br>
<blockquote type="cite">
<div>However, the tricks to set Brush color inside of OnCustomDraw
or OnAdvancedCustomDraw do not work.</div>
<div>Am I missing something? How is it done?</div>
<div>
<div><br>
</div>
</div>
</blockquote></div>
You cannot do that.<br>
And even if you get it working with one widgetset, it would fail on
any other OS, since they all draw it differently.<br>
<br>
I ended up writing my own list view
(<a href="http://www.benibela.de/components_en.html#treelistview" target="_blank">http://www.benibela.de/components_en.html#treelistview</a>), <br>
just to get differently colored rows<br>
<br>
Or you can stay with the grid and implement your own selection<br>
(<a href="http://www.lazarus.freepascal.org/index.php?topic=7981.0" target="_blank">http://www.lazarus.freepascal.org/index.php?topic=7981.0</a>)<br>
<br><br></div></blockquote></div><div><br></div>-- <br>Atenciosamente,<br>Alexsander da Rosa<br><br><br>
</div>