X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/9a35701127e3e8d2c7fb433d85c7b3954ccbfc9f..7c7a653bec7c85eccce74ee1dcb060011f5b51cf:/src/generic/tipdlg.cpp diff --git a/src/generic/tipdlg.cpp b/src/generic/tipdlg.cpp index a3514774fd..3c014cab9c 100644 --- a/src/generic/tipdlg.cpp +++ b/src/generic/tipdlg.cpp @@ -211,6 +211,7 @@ wxString wxFileTipProvider::GetTip() BEGIN_EVENT_TABLE(wxTipDialog, wxDialog) EVT_BUTTON(wxID_NEXT_TIP, wxTipDialog::OnNextTip) + EVT_BUTTON(wxID_CLOSE, wxTipDialog::OnCancel) END_EVENT_TABLE() wxTipDialog::wxTipDialog(wxWindow *parent, @@ -226,8 +227,7 @@ wxTipDialog::wxTipDialog(wxWindow *parent, // smart phones does not support or do not waste space for wxButtons #ifndef __SMARTPHONE__ - // FIXME: use stock wxID_CLOSE button here! - wxButton *btnClose = new wxButton(this, wxID_CANCEL, _("Close")); + wxButton *btnClose = new wxButton(this, wxID_CLOSE); #endif m_checkbox = new wxCheckBox(this, wxID_ANY, _("&Show tips at startup")); @@ -293,7 +293,7 @@ wxTipDialog::wxTipDialog(wxWindow *parent, // smart phones does not support or do not waste space for wxButtons #ifdef __SMARTPHONE__ SetRightMenu(wxID_NEXT_TIP, _("Next")); - SetLeftMenu(wxID_CANCEL, _("Close")); + SetLeftMenu(wxID_CLOSE); #else bottom->Add( 10,10,1 ); bottom->Add( btnNext, 0, wxCENTER | wxLEFT, wxLARGESMALL(10,0) );