Don't explicitly set the background colour for wxChoice.
This is unnecessary and results in flicker when the control is resized because we explicitly erase its background ourselves and then it does it itself. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@62933 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
parent
b8797d96ca
commit
cd57c6d690
@ -142,10 +142,6 @@ bool wxChoice::CreateAndInit(wxWindow *parent,
|
||||
return false;
|
||||
|
||||
|
||||
// choice/combobox normally has "white" (depends on colour scheme, of
|
||||
// course) background rather than inheriting the parent's background
|
||||
SetBackgroundColour(wxSystemSettings::GetColour(wxSYS_COLOUR_WINDOW));
|
||||
|
||||
// initialize the controls contents
|
||||
for ( int i = 0; i < n; i++ )
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user