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:
@@ -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)
|
||||
|
Reference in New Issue
Block a user