7
mirror of https://gitlab.com/kicad/code/kicad.git synced 2025-04-21 00:21:25 +00:00

Filterable combobox use listbox background

They're still wierd in terms of tab traversal (they seem
to be skipped) but at least they don't look like disabled
controls now.
This commit is contained in:
John Beard 2024-10-27 04:42:27 +08:00
parent 3bb0373808
commit 5609086819

View File

@ -26,6 +26,7 @@
#include <wx/textctrl.h>
#include <wx/listbox.h>
#include <wx/settings.h>
#include <wx/sizer.h>
#include <wx/stattext.h>
#include <wx/valtext.h>
@ -391,6 +392,8 @@ FILTER_COMBOBOX::FILTER_COMBOBOX( wxWindow *parent, wxWindowID id, const wxPoint
{
UseAltPopupWindow();
Connect( wxEVT_CHAR_HOOK, wxKeyEventHandler( FILTER_COMBOBOX::onKeyDown ), nullptr, this );
SetBackgroundColour( wxSystemSettings::GetColour( wxSYS_COLOUR_LISTBOX ) );
}