]> Creatis software - bbtk.git/blobdiff - packages/wx/src/bbwxFileSelector.cxx
#135 BBTK Feature New Normal - branch vtk7itk4wx3
[bbtk.git] / packages / wx / src / bbwxFileSelector.cxx
index 4757485e021b57407f02fbbbf0b32b1fef04b41b..c216cdd5c60d641b86a9b107f2fc83fbfd8dadb6 100644 (file)
@@ -80,11 +80,21 @@ namespace bbwx
     long style;
     if (bbGetInputOpenSave()=="Save") 
       {
+//EED 2017-09-16 Migration wxWidgets 2.8 to 3.0
+#if wxMAJOR_VERSION <= 2
        style = wxSAVE | wxOVERWRITE_PROMPT;
-      }
-    else 
-      {
+#else
+       style = wxFD_SAVE | wxFD_OVERWRITE_PROMPT;
+#endif
+      }  else  {
+
+//EED 2017-09-16 Migration wxWidgets 2.8 to 3.0
+#if wxMAJOR_VERSION <= 2
        style = wxOPEN | wxFILE_MUST_EXIST;
+#else
+       style = wxFD_OPEN | wxFD_FILE_MUST_EXIST;
+#endif
+
       }
     
     std::string wc(bbGetInputWildcard());