Ensure PostCreation is always called, so the widget will be shown properly
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@26758 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -84,16 +84,12 @@ bool wxStaticBitmap::Create( wxWindow *parent, wxWindowID id, const wxBitmap &bi
|
|||||||
else
|
else
|
||||||
{
|
{
|
||||||
m_widget = gtk_label_new( "Bitmap" );
|
m_widget = gtk_label_new( "Bitmap" );
|
||||||
|
|
||||||
m_focusWidget = m_widget;
|
m_focusWidget = m_widget;
|
||||||
|
|
||||||
PostCreation();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
PostCreation();
|
||||||
m_parent->DoAddChild( this );
|
m_parent->DoAddChild( this );
|
||||||
|
|
||||||
Show( TRUE );
|
|
||||||
|
|
||||||
return TRUE;
|
return TRUE;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@@ -84,16 +84,12 @@ bool wxStaticBitmap::Create( wxWindow *parent, wxWindowID id, const wxBitmap &bi
|
|||||||
else
|
else
|
||||||
{
|
{
|
||||||
m_widget = gtk_label_new( "Bitmap" );
|
m_widget = gtk_label_new( "Bitmap" );
|
||||||
|
|
||||||
m_focusWidget = m_widget;
|
m_focusWidget = m_widget;
|
||||||
|
|
||||||
PostCreation();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
PostCreation();
|
||||||
m_parent->DoAddChild( this );
|
m_parent->DoAddChild( this );
|
||||||
|
|
||||||
Show( TRUE );
|
|
||||||
|
|
||||||
return TRUE;
|
return TRUE;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user