30#include <wx/settings.h>
36 wxPopupWindow( aParent ),
39 m_panel =
new wxPanel(
this, wxID_ANY );
42 m_panel->SetBackgroundColour( wxSystemSettings::GetColour( wxSYS_COLOUR_WINDOW ) );
60 aEvent.SetEventType( wxEVT_CHAR );
67 GetParent()->GetEventHandler()->ProcessEvent( aEvent );
93 SetPosition( aWhere );
106 SetClientSize(
m_panel->GetSize() );
119 m_panel->SetBackgroundColour( wxSystemSettings::GetColour( wxSYS_COLOUR_BTNSHADOW ) );
120 m_panel->SetForegroundColour( wxSystemSettings::GetColour( wxSYS_COLOUR_BTNTEXT ) );
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.
wxPoint ToWxPoint(const VECTOR2I &aSize)