wxListCtrl Label Color Topic is solved

If you are using the main C++ distribution of wxWidgets, Feel free to ask any question related to wxWidgets development here. This means questions regarding to C++ and wxWidgets, not compile problems.
Post Reply
Nick
Earned some good credits
Earned some good credits
Posts: 107
Joined: Thu Apr 11, 2019 12:50 am

wxListCtrl Label Color

Post by Nick » Sat May 23, 2020 6:36 pm

Is it possible to change the colour of the column label font? I'd like to put blue bold.
Or even change the background of those labels?
I'm asking because when I looked at the wxwidgets example, I didn't see any of that!

PB
Part Of The Furniture
Part Of The Furniture
Posts: 2478
Joined: Sun Jan 03, 2010 5:45 pm

Re: wxListCtrl Label Color

Post by PB » Sat May 23, 2020 7:26 pm

Check the listctrl sample, menu Colour / Custom header attributes.

However, according to the docs wxListCtrl::SetHeaderAttr() works only on MSW.

Nick
Earned some good credits
Earned some good credits
Posts: 107
Joined: Thu Apr 11, 2019 12:50 am

Re: wxListCtrl Label Color

Post by Nick » Sat May 23, 2020 8:02 pm

PB wrote:
Sat May 23, 2020 7:26 pm
Check the listctrl sample, menu Colour / Custom header attributes.

However, according to the docs wxListCtrl::SetHeaderAttr() works only on MSW.
You're right, it doesn't work for Linux. Thanks! (Sorry, header attributes not supported on this platform)

ONEEYEMAN
Part Of The Furniture
Part Of The Furniture
Posts: 4264
Joined: Sat Apr 16, 2005 7:22 am
Location: USA, Ukraine

Re: wxListCtrl Label Color

Post by ONEEYEMAN » Sun May 24, 2020 12:40 am

Hi,
You can use wxGrid.

Thank you.

Post Reply