30#include <wx/settings.h>
37 wxPopupWindow( aParent ),
40 SetDoubleBuffered(
true );
42 m_panel =
new wxPanel(
this, wxID_ANY );
45 m_panel->SetBackgroundColour( wxSystemSettings::GetColour( wxSYS_COLOUR_WINDOW ) );
63 aEvent.SetEventType( wxEVT_CHAR );
70 GetParent()->GetEventHandler()->ProcessEvent( aEvent );
96 SetPosition( aWhere );
109 SetClientSize(
m_panel->GetSize() );
122 SetBackgroundColour( wxSystemSettings::GetColour( wxSYS_COLOUR_BTNFACE ) );
123 m_panel->SetBackgroundColour( wxSystemSettings::GetColour( wxSYS_COLOUR_BTNFACE ) );
124 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)