wxListCtrl colour in Linux Topic is solved

Do you have a typical platform dependent issue you're battling with ? Ask it here. Make sure you mention your platform, compiler, and wxWidgets version.
Post Reply
merich
In need of some credit
In need of some credit
Posts: 1
Joined: Wed Jan 27, 2021 12:20 pm

wxListCtrl colour in Linux

Post by merich » Wed Jan 27, 2021 12:40 pm

Hi to everyone.
I am new in wxWidgets.
I need use wxListCtrl in report mode. I want use diff. colour for diff. cells.
I am using wxLC_VIRTUAL mode, inherit my subclass from wxListCtrl and override OnGetItemColumnAttr to return needed attributes.
It is work fine on Windows but in Linux there is not any changes in table looking.
Is it right ?
Or there is something I don't know.

User avatar
doublemax@work
Experienced Solver
Experienced Solver
Posts: 97
Joined: Wed Jul 29, 2020 6:06 pm

Re: wxListCtrl colour in Linux

Post by doublemax@work » Wed Jan 27, 2021 2:34 pm

The documentation for OnGetItemColumnAttr() clearly states:
Currently this function is only called under wxMSW, the other ports only support OnGetItemAttr()
https://docs.wxwidgets.org/trunk/classw ... 7c9251bd2f

Post Reply