mirror of
https://github.com/wxWidgets/wxWidgets.git
synced 2026-08-17 08:53:06 +08:00
Fix system colour change for wxVListBox
Remove the background colour setting from wxVListBox::Create() so that
the control uses the up-to-date background colour in the paint event
handler. This way the control responds to system colour changes.
The comment about transparent drawing is wrong since 0975a8a (Applied
patch [ 1405821 ] wxVListBox double-buffering + fix to a scrolling issue
By Jaakko Salli, 2006-01-17).
Closes #26636.
This commit is contained in:
committed by
Vadim Zeitlin
parent
ffeeb612cd
commit
a83d0b0af6
@@ -82,10 +82,6 @@ bool wxVListBox::Create(wxWindow *parent,
|
||||
if ( style & wxLB_MULTIPLE )
|
||||
m_selStore = new wxSelectionStore;
|
||||
|
||||
// make sure the native widget has the right colour since we do
|
||||
// transparent drawing by default
|
||||
SetBackgroundColour(GetBackgroundColour());
|
||||
|
||||
// leave m_colBgSel in an invalid state: it means for OnDrawBackground()
|
||||
// to use wxRendererNative instead of painting selection bg ourselves
|
||||
m_colBgSel = wxNullColour;
|
||||
|
||||
Reference in New Issue
Block a user