[Lazarus] Brush color on TListView
Benito van der Zander
benito at benibela.de
Thu Sep 13 14:07:15 CEST 2012
> However, the tricks to set Brush color inside of OnCustomDraw or
> OnAdvancedCustomDraw do not work.
> Am I missing something? How is it done?
>
You cannot do that.
And even if you get it working with one widgetset, it would fail on any
other OS, since they all draw it differently.
I ended up writing my own list view
(http://www.benibela.de/components_en.html#treelistview),
just to get differently colored rows
Or you can stay with the grid and implement your own selection
(http://www.lazarus.freepascal.org/index.php?topic=7981.0)
Benito
On 09/12/2012 10:33 PM, Alexsander Rosa wrote:
> I was using a TStringGrid to show some data but I need the "non-linear
> multi-select" from TListView.
> However, the tricks to set Brush color inside of OnCustomDraw or
> OnAdvancedCustomDraw do not work.
> Am I missing something? How is it done?
>
> --
> Atenciosamente,
> Alexsander da Rosa
>
>
>
>
> --
> _______________________________________________
> Lazarus mailing list
> Lazarus at lists.lazarus.freepascal.org
> http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lazarus-ide.org/pipermail/lazarus/attachments/20120913/e3bbf66c/attachment-0003.html>
More information about the Lazarus
mailing list