wxTopLevelWindow (only for wxGTK for now)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@11612 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -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 )
|
||||
|
||||
Reference in New Issue
Block a user