IMPLEMENT_DYNAMIC_CLASS(wxDialog,wxPanel)
-wxDialog::wxDialog()
+void wxDialog::Init()
{
- m_title = "";
m_sizeSet = FALSE;
m_modalShowing = FALSE;
}
const wxPoint &pos, const wxSize &size,
long style, const wxString &name )
{
- m_modalShowing = FALSE;
- m_sizeSet = FALSE;
+ Init();
+
Create( parent, id, title, pos, size, style, name );
}
if (m_parent) m_parent->AddChild( this );
PostCreation();
-
+
gtk_widget_realize( m_widget );
gtk_signal_connect( GTK_OBJECT(m_widget), "size_allocate",
if ((m_x != old_x) || (m_y != old_y))
{
/* m_sizeSet = FALSE; */
- gtk_widget_set_uposition( m_widget, m_x, m_y );
+ gtk_widget_set_uposition( m_widget, m_x, m_y );
}
}
}
wxWindow::Show( show );
-
+
if (show) InitDialog();
return TRUE;
wxFAIL_MSG( "wxDialog:ShowModal called twice" );
return GetReturnCode();
}
-
+
Show( TRUE );
m_modalShowing = TRUE;