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:
@@ -39,7 +39,12 @@ wxMenuBar::wxMenuBar( long style )
|
||||
m_needParent = FALSE;
|
||||
m_style = style;
|
||||
|
||||
PreCreation( (wxWindow *) NULL, -1, wxDefaultPosition, wxDefaultSize, style, "menu" );
|
||||
if (!PreCreation( (wxWindow*) NULL, wxDefaultPosition, wxDefaultSize ) ||
|
||||
!CreateBase( (wxWindow*) NULL, -1, wxDefaultPosition, wxDefaultSize, style, wxDefaultValidator, _T("menubar") ))
|
||||
{
|
||||
wxFAIL_MSG( _T("wxMenuBar creation failed") );
|
||||
return;
|
||||
}
|
||||
|
||||
m_menus.DeleteContents( TRUE );
|
||||
|
||||
@@ -72,8 +77,13 @@ wxMenuBar::wxMenuBar()
|
||||
m_needParent = FALSE;
|
||||
m_style = 0;
|
||||
|
||||
PreCreation( (wxWindow *) NULL, -1, wxDefaultPosition, wxDefaultSize, 0, "menu" );
|
||||
|
||||
if (!PreCreation( (wxWindow*) NULL, wxDefaultPosition, wxDefaultSize ) ||
|
||||
!CreateBase( (wxWindow*) NULL, -1, wxDefaultPosition, wxDefaultSize, 0, wxDefaultValidator, _T("menubar") ))
|
||||
{
|
||||
wxFAIL_MSG( _T("wxMenuBar creation failed") );
|
||||
return;
|
||||
}
|
||||
|
||||
m_menus.DeleteContents( TRUE );
|
||||
|
||||
/* GTK 1.2.0 doesn't have gtk_item_factory_get_item(), but GTK 1.2.1 has. */
|
||||
|
Reference in New Issue
Block a user