the msw implementation even shows an ok button if it is not specified, we do the same
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@19511 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -120,7 +120,8 @@ int wxMessageDialog::ShowModal()
|
|||||||
param.cancelButton = 0;
|
param.cancelButton = 0;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else if (m_dialogStyle & wxOK)
|
// the msw implementation even shows an ok button if it is not specified, we'll do the same
|
||||||
|
else
|
||||||
{
|
{
|
||||||
if (m_dialogStyle & wxCANCEL)
|
if (m_dialogStyle & wxCANCEL)
|
||||||
{
|
{
|
||||||
@@ -142,10 +143,12 @@ int wxMessageDialog::ShowModal()
|
|||||||
param.cancelButton = 0;
|
param.cancelButton = 0;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
/*
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
skipDialog = true ;
|
skipDialog = true ;
|
||||||
}
|
}
|
||||||
|
*/
|
||||||
|
|
||||||
param.position = kWindowDefaultPosition;
|
param.position = kWindowDefaultPosition;
|
||||||
if ( !skipDialog )
|
if ( !skipDialog )
|
||||||
|
@@ -120,7 +120,8 @@ int wxMessageDialog::ShowModal()
|
|||||||
param.cancelButton = 0;
|
param.cancelButton = 0;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else if (m_dialogStyle & wxOK)
|
// the msw implementation even shows an ok button if it is not specified, we'll do the same
|
||||||
|
else
|
||||||
{
|
{
|
||||||
if (m_dialogStyle & wxCANCEL)
|
if (m_dialogStyle & wxCANCEL)
|
||||||
{
|
{
|
||||||
@@ -142,10 +143,12 @@ int wxMessageDialog::ShowModal()
|
|||||||
param.cancelButton = 0;
|
param.cancelButton = 0;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
/*
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
skipDialog = true ;
|
skipDialog = true ;
|
||||||
}
|
}
|
||||||
|
*/
|
||||||
|
|
||||||
param.position = kWindowDefaultPosition;
|
param.position = kWindowDefaultPosition;
|
||||||
if ( !skipDialog )
|
if ( !skipDialog )
|
||||||
|
Reference in New Issue
Block a user