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:
Václav Slavík
2001-09-15 22:13:08 +00:00
parent 280df08533
commit 7d9f12f3b9
21 changed files with 2588 additions and 2529 deletions

View File

@@ -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 )