X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/c40ce5ce77b63f669f44e35f4f71418ae90d6291..497b78dfacb5e739fe7da7869f3a92a2e2747dbc:/src/generic/panelg.cpp diff --git a/src/generic/panelg.cpp b/src/generic/panelg.cpp index 249c75e9d6..a67f7da2e5 100644 --- a/src/generic/panelg.cpp +++ b/src/generic/panelg.cpp @@ -81,6 +81,13 @@ wxPanel::~wxPanel() { } +void wxPanel::InitDialog() +{ + wxInitDialogEvent event(GetId()); + event.SetEventObject(this); + GetEventHandler()->ProcessEvent(event); +} + // ---------------------------------------------------------------------------- // event handlers // ---------------------------------------------------------------------------- @@ -88,18 +95,19 @@ wxPanel::~wxPanel() // Responds to colour changes, and passes event on to children. void wxPanel::OnSysColourChanged(wxSysColourChangedEvent& event) { - SetBackgroundColour(wxSystemSettings::GetSystemColour(wxSYS_COLOUR_3DFACE)); + SetBackgroundColour(wxSystemSettings::GetColour(wxSYS_COLOUR_3DFACE)); Refresh(); // Propagate the event to the non-top-level children wxWindow::OnSysColourChanged(event); } -void wxPanel::OnSize(wxSizeEvent& WXUNUSED(event)) +void wxPanel::OnSize(wxSizeEvent& event) { #if wxUSE_CONSTRAINTS if (GetAutoLayout()) Layout(); #endif // wxUSE_CONSTRAINTS + event.Skip(); }