allow centering wxMessageDialog on its parent window (patch 1836072)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@50904 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -650,10 +650,10 @@ void MyFrame::LogDialog(wxCommandEvent& WXUNUSED(event))
|
||||
#if wxUSE_MSGDLG
|
||||
void MyFrame::MessageBox(wxCommandEvent& WXUNUSED(event) )
|
||||
{
|
||||
wxMessageDialog dialog(NULL,
|
||||
wxMessageDialog dialog(this,
|
||||
_T("This is a message box\nA long, long string to test out the message box properly"),
|
||||
_T("Message box text"),
|
||||
wxNO_DEFAULT | wxYES_NO | wxCANCEL | wxICON_INFORMATION);
|
||||
wxCENTER | wxNO_DEFAULT | wxYES_NO | wxCANCEL | wxICON_INFORMATION);
|
||||
|
||||
if ( dialog.SetYesNoLabels(_T("Answer &Yes"),_T("Answer &No")) )
|
||||
{
|
||||
|
Reference in New Issue
Block a user