28#define LIST_BOX_H_PADDING 20
29#define LIST_BOX_V_PADDING 8
31#define LIST_BOX_H_PADDING 40
32#define LIST_BOX_V_PADDING 5
34#define LIST_BOX_H_PADDING 10
35#define LIST_BOX_V_PADDING 5
38#define SHOW_TIME_MS 500
43 m_drawFrame( aParent )
55 m_listBox->Bind( wxEVT_CHAR_HOOK, [=]( wxKeyEvent& aEvent )
57 aEvent.SetEventType( wxEVT_CHAR );
77 m_listBox->SetSelection( std::min( aSelection,
78 static_cast<int>(
m_listBox->GetCount() ) - 1 ) );
80 int width =
m_stTitle->GetTextExtent( aTitle ).x;
83 for(
const wxString& item : aItems )
85 wxSize extents =
m_listBox->GetTextExtent( item );
86 width = std::max( width, extents.x );
95 GetSizer()->Fit(
this );
114 if( aEvent.GetEventType() == wxEVT_CHAR || aEvent.GetEventType() == wxEVT_CHAR_HOOK )
116 aEvent.SetEventType( wxEVT_CHAR );
122 return EDA_VIEW_SWITCHER_BASE::TryBefore( aEvent );
bool Show(bool show) override
The base class for create windows for drawing purpose.
virtual EDA_DRAW_PANEL_GAL * GetCanvas() const
Return a pointer to GAL-based canvas of given EDA draw frame.
void OnEvent(wxEvent &aEvent)
Used to forward events to the canvas from popups, etc.
Class EDA_VIEW_SWITCHER_BASE.
#define LIST_BOX_V_PADDING
#define LIST_BOX_H_PADDING
KICOMMON_API const wxString s_FocusStealableInputName