I tried to change wxAuiToolbar by calling SetBackgroundColour and Refresh as the same as the sample code of wxToolBar in the toolbar sample. It did not work.
I'm not sure if I missed something or it's a bug.
Issue of changing background color of wxAuiToolbar
Re: Issue of changing background color of wxAuiToolbar
It seems that this would need to be done via a custom wxAuiToolBarArt provider, overriding Draw(Plain)Background and possibly other methods.
Re: Issue of changing background color of wxAuiToolbar
Sounds like the function was not supported. Why was it not added while refactoring wxAui.
Re: Issue of changing background color of wxAuiToolbar
Just mere existence of an inherited method does not guarantee anything. For example, many controls ignore Set(Background)Colour() as the underlying native control does not support it, this can differ even between the platforms for the same control.csniper wrote:Sounds like the function was not supported. Why was it not added while refactoring wxAui.
Anyway, wxAUI is one of the parts of wxWidgets (just like e.g. wxRibbon) that uses the art-provider concept, probably because its drawing is rather complex and just Set(Background)Colour() is not sufficient...