https://dl.dropboxusercontent.com/u/858 ... 91x436.png
See the button text "Open" is in black color, how can I change it to white?
change the text color in wxDataViewListCtrl Topic is solved
-
- Experienced Solver
- Posts: 64
- Joined: Fri Apr 17, 2009 7:15 am
- Location: Sydney, Australia
- Contact:
change the text color in wxDataViewListCtrl
help me, help you.
http://blog.binchen.org
http://blog.binchen.org
Re: change the text color in wxDataViewListCtrl
How do you draw the button?
If you draw it yourself, you can set the color with wxDC::SetTextForeground()
http://docs.wxwidgets.org/trunk/classwx ... f3049849d6
If you draw it yourself, you can set the color with wxDC::SetTextForeground()
http://docs.wxwidgets.org/trunk/classwx ... f3049849d6
Use the source, Luke!
-
- Experienced Solver
- Posts: 64
- Joined: Fri Apr 17, 2009 7:15 am
- Location: Sydney, Australia
- Contact:
Re: change the text color in wxDataViewListCtrl
Thanks, I think it's because I'm using wxDataViewCustomRenderer:RenderText() on gtk+, for some reason, the text color is hardcoded in that function.
I just use wxDC->DrawLabel instead and it works as expected.
I just use wxDC->DrawLabel instead and it works as expected.
help me, help you.
http://blog.binchen.org
http://blog.binchen.org