30#include <wx/settings.h>
35 wxPopupWindow( aParent ),
38 m_panel =
new wxPanel(
this, wxID_ANY );
41 m_panel->SetBackgroundColour( wxSystemSettings::GetColour( wxSYS_COLOUR_WINDOW ) );
59 aEvent.SetEventType( wxEVT_CHAR );
66 GetParent()->GetEventHandler()->ProcessEvent( aEvent );
105 SetClientSize(
m_panel->GetSize() );
118 m_panel->SetBackgroundColour( wxSystemSettings::GetColour( wxSYS_COLOUR_BTNSHADOW ) );
119 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.
void SetPosition(const wxString &aStr, const wxString &aDefaultMeasurementUnit, int *aX, int *aY, const wxString &aActualConversion)