X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/1e6feb95a79834836e88143b15d9f424ebe79621..f427e0d63499522aeeb8360e6a5c748de0a87d92:/src/common/dlgcmn.cpp?ds=sidebyside diff --git a/src/common/dlgcmn.cpp b/src/common/dlgcmn.cpp index 5a442f914d..8895538665 100644 --- a/src/common/dlgcmn.cpp +++ b/src/common/dlgcmn.cpp @@ -37,12 +37,31 @@ #include "wx/stattext.h" #include "wx/sizer.h" #include "wx/button.h" + #include "wx/containr.h" #endif + //-------------------------------------------------------------------------- // wxDialogBase //-------------------------------------------------------------------------- +// FIXME - temporary hack in absence of wxtopLevelWindow, should be always used +#ifdef wxTopLevelWindowNative +BEGIN_EVENT_TABLE(wxDialogBase, wxTopLevelWindow) + WX_EVENT_TABLE_CONTROL_CONTAINER(wxDialogBase) +END_EVENT_TABLE() + +WX_DELEGATE_TO_CONTROL_CONTAINER(wxDialogBase) +#endif + +void wxDialogBase::Init() +{ + m_returnCode = 0; +#ifdef wxTopLevelWindowNative // FIXME - temporary hack, should be always used! + m_container.SetContainerWindow(this); +#endif +} + #if wxUSE_STATTEXT && wxUSE_TEXTCTRL wxSizer *wxDialogBase::CreateTextSizer( const wxString &message )