Discussion:
Changing font color in wxAuiNotebook tabs
p***@gmail.com
2014-05-15 21:17:21 UTC
Permalink
Hi All,

I'm trying to change the color of a text in wxAuiNotebook tabs, but don't
see the appropriate call.

I can change the color of he tab background and the tabs themselves (using
notebook:GetArtProvider():SetColour() and SetActiveColour() calls), I can
change the font itself, but don't see how I can change the color. It
seems that because the drawing is done on wxDC, SetTextBackground and
SetTextForeground methods should be used, but I don't see them being called
when tabs are drawn.

Is there an API call I'm missing to change the text color or is it not
possible to change the color? Thank you.

Paul.
--
Please read http://www.wxwidgets.org/support/mlhowto.htm before posting.

To unsubscribe, send email to wx-users+***@googlegroups.com
or visit http://groups.google.com/group/wx-users
Malcolm MacLeod
2014-05-15 21:32:05 UTC
Permalink
Post by p***@gmail.com
I'm trying to change the color of a text in wxAuiNotebook tabs, but
don't see the appropriate call.
I can change the color of he tab background and the tabs themselves
(using notebook:GetArtProvider():SetColour() and SetActiveColour()
calls), I can change the font itself, but don't see how I can change
the color. It seems that because the drawing is done on wxDC,
SetTextBackground and SetTextForeground methods should be used, but I
don't see them being called when tabs are drawn.
Is there an API call I'm missing to change the text color or is it not
possible to change the color? Thank you.
I don't think it is currently possible (other than implementing your own
art provider). This should probably be fixed at some point.

- Malcolm
--
Please read http://www.wxwidgets.org/support/mlhowto.htm before posting.

To unsubscribe, send email to wx-users+***@googlegroups.com
or visit http://groups.google.com/group/wx-users
Loading...