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:
@@ -90,13 +90,11 @@ void MyFrame::OnQuit(wxCommandEvent& WXUNUSED(event))
|
|||||||
void MyFrame::OnTest1(wxCommandEvent& WXUNUSED(event))
|
void MyFrame::OnTest1(wxCommandEvent& WXUNUSED(event))
|
||||||
{
|
{
|
||||||
#if ( defined(__WXOS2__) || defined(__WXMSW__) ) && !defined(__WXUNIVERSAL__)
|
#if ( defined(__WXOS2__) || defined(__WXMSW__) ) && !defined(__WXUNIVERSAL__)
|
||||||
MyDialog *dialog = new MyDialog;
|
MyDialog dialog;
|
||||||
if (dialog->LoadNativeDialog(this, _T("dialog1")))
|
if (dialog.LoadNativeDialog(this, _T("dialog1")))
|
||||||
{
|
{
|
||||||
dialog->SetModal(true);
|
dialog.ShowModal();
|
||||||
dialog->ShowModal();
|
|
||||||
}
|
}
|
||||||
dialog->Close(true);
|
|
||||||
#else
|
#else
|
||||||
wxMessageBox(_T("No native dialog support"),_T("Platform limitation"));
|
wxMessageBox(_T("No native dialog support"),_T("Platform limitation"));
|
||||||
#endif
|
#endif
|
||||||
|
Reference in New Issue
Block a user