-#include "wx/object.h"
-#include "wx/font.h"
-#include "wx/colour.h"
-#include "wx/settings.h"
-#endif
-
-#include "wx/generic/panelg.h"
-
-#if !USE_SHARED_LIBRARY
-IMPLEMENT_DYNAMIC_CLASS(wxPanel, wxWindow)
-
-BEGIN_EVENT_TABLE(wxPanel, wxWindow)
- EVT_SYS_COLOUR_CHANGED(wxPanel::OnSysColourChanged)
- EVT_SET_FOCUS(wxPanel::OnFocus)
- EVT_NAVIGATION_KEY(wxPanel::OnNavigationKey)
-END_EVENT_TABLE()
-
-#endif
-
-wxPanel::wxPanel()
-{
- m_lastFocus = NULL;
-}
-
-bool wxPanel::Create(wxWindow *parent, wxWindowID id,
- const wxPoint& pos,
- const wxSize& size,
- long style,
- const wxString& name)
-{
- m_lastFocus = NULL;
-
- bool ret = wxWindow::Create(parent, id, pos, size, style, name);
-
- if ( ret )
- {
-#ifndef __WXGTK__
- SetBackgroundColour(wxSystemSettings::GetSystemColour(wxSYS_COLOUR_3DFACE));
- SetFont(wxSystemSettings::GetSystemFont(wxSYS_DEFAULT_GUI_FONT));
-#endif
- }
-
- return ret;
-}
-
-void wxPanel::InitDialog(void)
-{
- wxInitDialogEvent event(GetId());
- event.SetEventObject(this);
- GetEventHandler()->ProcessEvent(event);
-}