Use InheritAttributes for wxGTK widgets so they will check
ShouldInheritColours. Set wxButton to not inherit colours. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@24702 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -399,10 +399,7 @@ bool wxListBox::Create( wxWindow *parent, wxWindowID id,
|
||||
m_parent->DoAddChild( this );
|
||||
|
||||
PostCreation();
|
||||
|
||||
SetBackgroundColour( wxSystemSettings::GetColour( wxSYS_COLOUR_LISTBOX ) );
|
||||
SetForegroundColour( parent->GetForegroundColour() );
|
||||
SetFont( parent->GetFont() );
|
||||
InheritAttributes();
|
||||
|
||||
Show( TRUE );
|
||||
|
||||
|
Reference in New Issue
Block a user