#include "wx/generic/panelg.h"
-#if !USE_SHARED_LIBRARY
IMPLEMENT_DYNAMIC_CLASS(wxPanel, wxWindow)
BEGIN_EVENT_TABLE(wxPanel, wxWindow)
EVT_SIZE(wxPanel::OnSize)
END_EVENT_TABLE()
-#endif
void wxPanel::Init()
{
if ( ret )
{
-#ifndef __WXGTK__
SetBackgroundColour(wxSystemSettings::GetSystemColour(wxSYS_COLOUR_3DFACE));
SetFont(wxSystemSettings::GetSystemFont(wxSYS_DEFAULT_GUI_FONT));
-#endif
}
return ret;
void wxPanel::OnSize(wxSizeEvent& WXUNUSED(event))
{
#if wxUSE_CONSTRAINTS
- if (GetAutoLayout()) Layout();
+ if (GetAutoLayout())
+ Layout();
#endif
}
if (m_winLastFocused)
{
// It might happen that the window got reparented or no longer
- // accepts the focus.
+ // accepts the focus.
if ((m_winLastFocused->GetParent() == this) &&
- (m_winLastFocused->AcceptsFocus()))
+ (m_winLastFocused->AcceptsFocus()))
{
m_winLastFocused->SetFocus();
return;