Small distrib updates,

tried to find a bug in html which was somewhere else,
  added wxYield() call to wxBeginBusyCursor() which
    should make the cursor appear immediately,
  corrected wxMiniFrame so that clicking on the titlebar
    makes it come to the front
  Used CreateBase() in all controls


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@3171 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Robert Roebling
1999-07-27 20:23:13 +00:00
parent 813c20a67e
commit 4dcaf11a7b
66 changed files with 472 additions and 292 deletions

View File

@@ -1821,7 +1821,12 @@ bool wxWindow::Create( wxWindow *parent, wxWindowID id,
const wxPoint &pos, const wxSize &size,
long style, const wxString &name )
{
PreCreation( parent, id, pos, size, style, name );
if (!PreCreation( parent, pos, size ) ||
!CreateBase( parent, id, pos, size, style, wxDefaultValidator, name ))
{
wxFAIL_MSG( _T("wxWindow creation failed") );
return FALSE;
}
m_insertCallback = wxInsertChildInWindow;
@@ -2002,27 +2007,22 @@ wxWindow::~wxWindow()
}
}
void wxWindow::PreCreation( wxWindow *parent,
wxWindowID id,
const wxPoint &pos,
const wxSize &size,
long style,
const wxString &name )
bool wxWindow::PreCreation( wxWindow *parent, const wxPoint &pos, const wxSize &size )
{
wxASSERT_MSG( !m_needParent || parent, _T("Need complete parent.") );
if ( !CreateBase(parent, id, pos, size, style, wxDefaultValidator, name) )
{
wxFAIL_MSG(_T("window creation failed"));
}
wxCHECK_MSG( !m_needParent || parent, FALSE, _T("Need complete parent.") );
/* this turns -1 into 20 so that a minimal window is
visible even although -1,-1 has been given as the
size of the window. the same trick is used in other
ports and should make debugging easier */
m_width = WidthDefault(size.x);
m_height = HeightDefault(size.y);
m_x = (int)pos.x;
m_y = (int)pos.y;
if (!parent) /* some reasonable defaults */
/* some reasonable defaults */
if (!parent)
{
if (m_x == -1)
{
@@ -2035,6 +2035,8 @@ void wxWindow::PreCreation( wxWindow *parent,
if (m_y < 10) m_y = 10;
}
}
return TRUE;
}
void wxWindow::PostCreation()