Fixed setting colours of wxSlider and wxRadioBox in wxMSW.

Sibling windows (like labels and radio buttons) need to be explicitly
refreshed when foreground or background colour is changed. This is implemented
by invoking newly implemented method wxSubwindows::Refresh every time the
colour of the control is changed.

Note: Setting foreground colour of wxRadioBox still doesn't work correctly
when themes are enabled.

Closes #17142.
This commit is contained in:
Artur Wieczorek
2015-09-11 18:47:49 +02:00
committed by Vadim Zeitlin
parent 7f08dbbf78
commit 865c8565af
4 changed files with 41 additions and 1 deletions

View File

@@ -91,6 +91,8 @@ public:
virtual bool Show(bool show = true);
virtual bool Enable(bool show = true);
virtual bool SetFont(const wxFont& font);
virtual bool SetForegroundColour(const wxColour& colour);
virtual bool SetBackgroundColour(const wxColour& colour);
virtual WXDWORD MSWGetStyle(long flags, WXDWORD *exstyle = NULL) const;