Removal of deprecated methods.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@28224 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
parent
16640ba226
commit
a61fea4144
@ -90,15 +90,13 @@ void MyFrame::OnQuit(wxCommandEvent& WXUNUSED(event))
|
||||
void MyFrame::OnTest1(wxCommandEvent& WXUNUSED(event))
|
||||
{
|
||||
#if ( defined(__WXOS2__) || defined(__WXMSW__) ) && !defined(__WXUNIVERSAL__)
|
||||
MyDialog *dialog = new MyDialog;
|
||||
if (dialog->LoadNativeDialog(this, _T("dialog1")))
|
||||
{
|
||||
dialog->SetModal(true);
|
||||
dialog->ShowModal();
|
||||
}
|
||||
dialog->Close(true);
|
||||
MyDialog dialog;
|
||||
if (dialog.LoadNativeDialog(this, _T("dialog1")))
|
||||
{
|
||||
dialog.ShowModal();
|
||||
}
|
||||
#else
|
||||
wxMessageBox(_T("No native dialog support"),_T("Platform limitation"));
|
||||
wxMessageBox(_T("No native dialog support"),_T("Platform limitation"));
|
||||
#endif
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user