]> Creatis software - bbtk.git/blobdiff - packages/wx/src/bbwxFileSelector.cxx
*** empty log message ***
[bbtk.git] / packages / wx / src / bbwxFileSelector.cxx
index 4a049c54c1f4785b886e51c34355f29faa9f3c91..0c6c66ac57016dbf0f7fee72bc563ec9ca6d050c 100644 (file)
@@ -3,8 +3,8 @@
   Program:   bbtk
   Module:    $RCSfile: bbwxFileSelector.cxx,v $
   Language:  C++
-  Date:      $Date: 2008/04/18 12:59:52 $
-  Version:   $Revision: 1.2 $
+  Date:      $Date: 2008/06/26 07:37:11 $
+  Version:   $Revision: 1.3 $
                                                                                 
   Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de
   l'Image). All rights reserved. See Doc/License.txt or
@@ -68,9 +68,13 @@ namespace bbwx
                                         bbtk::std2wx(wc),
                                         style,
                                         wxDefaultPosition);
+//EED
+
+    int result_FD = FD->ShowModal();
+
+       // This line is need it by windows //EED
+       FD->SetReturnCode( result_FD );
 
-    FD->ShowModal();
-    
     if (FD->GetReturnCode()==wxID_OK)
       {
        bbSetOutputOut( bbtk::wx2std (FD->GetPath()) );
@@ -84,6 +88,12 @@ namespace bbwx
   }
   
 
+  void FileSelector::bbUserConstructor()
+  {
+         bbSetInputOpenSave("Open");
+  }
+       
+
 
 }//namespace bbtk