]> Creatis software - bbtk.git/blobdiff - kernel/src/bbtkWxGUICommand.cxx
#135 BBTK Feature New Normal - branch vtk7itk4wx3
[bbtk.git] / kernel / src / bbtkWxGUICommand.cxx
index 2e37ec476a6922b11453d95112e2ef97f88feae8..c9fc3823e04e1483d8c5ac86facc84dc083790b9 100644 (file)
@@ -164,7 +164,13 @@ namespace bbtk
     std::string stdDir = default_doc_dir+"/share/bbtk/bbs";
     wxString defaultDir(stdDir.c_str(), wxConvUTF8);
 
+//EED 2017-09-16 Migration wxWidgets 2.8 to 3.0
+#if wxMAJOR_VERSION <= 2
     wxFileDialog dialog(this, _T("Include file"),defaultDir, _T(""), _T("*.bbs"), wxOPEN );
+#else
+    wxFileDialog dialog(this, _T("Include file"),defaultDir, _T(""), _T("*.bbs"), wxFD_OPEN );
+#endif
+
     if (dialog.ShowModal() == wxID_OK)
      {
        // std::string command(_T("include "));