Fixed a small wxDialog thing

Fixed transparency in wxNotebook
  Turned the controls sample in way the coolest of all smaples


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@670 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Robert Roebling
1998-09-05 08:37:40 +00:00
parent 25c70b07e6
commit 5b011451bd
11 changed files with 229 additions and 397 deletions

View File

@@ -229,7 +229,13 @@ void wxDialog::SetModal(bool flag)
int wxDialog::ShowModal(void)
{
if (m_modalShowing) return GetReturnCode();
SetModal(TRUE);
if (m_modalShowing)
{
wxFAIL_MSG( "wxDialog:ShowModal called twice" );
return GetReturnCode();
}
Show( TRUE );
@@ -248,13 +254,15 @@ void wxDialog::EndModal( int retCode )
if (!m_modalShowing)
{
wxFAIL_MSG( "wxDialog: called EndModal twice" );
wxFAIL_MSG( "wxDialog:EndModal called twice" );
return;
}
m_modalShowing = FALSE;
gtk_main_quit();
Show( FALSE );
}
void wxDialog::InitDialog(void)