]> Creatis software - bbtk.git/blobdiff - packages/wx/src/bbwxColourSelector.cxx
*** empty log message ***
[bbtk.git] / packages / wx / src / bbwxColourSelector.cxx
index 341c6e4af3e22c2a591d53ce122da5685b6f0d17..80cfe680e8d871bbbfa804bacf116c07fae8c192 100644 (file)
@@ -3,8 +3,8 @@
   Program:   bbtk
   Module:    $RCSfile: bbwxColourSelector.cxx,v $
   Language:  C++
-  Date:      $Date: 2008/03/21 10:09:11 $
-  Version:   $Revision: 1.2 $
+  Date:      $Date: 2008/06/26 07:37:11 $
+  Version:   $Revision: 1.4 $
                                                                                 
   Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de
   l'Image). All rights reserved. See Doc/License.txt or
@@ -31,7 +31,7 @@ namespace bbwx
 {
 
   BBTK_ADD_BLACK_BOX_TO_PACKAGE(wx,ColourSelector);
-  BBTK_USER_BLACK_BOX_IMPLEMENTATION(ColourSelector,bbtk::AtomicBlackBox);
+  BBTK_BLACK_BOX_IMPLEMENTATION(ColourSelector,bbtk::AtomicBlackBox);
 
   void ColourSelector::bbUserConstructor()
   {
@@ -43,7 +43,11 @@ namespace bbwx
                           <<bbGetFullName()<<"]"<<std::endl);
 
       wxColourDialog *colordialog = new wxColourDialog( 0 );
-      colordialog->ShowModal();
+      int result_colordialog = colordialog->ShowModal();
+
+       // This line is need it by windows // EED
+       colordialog->SetReturnCode( result_colordialog );
+
       if (colordialog->GetReturnCode()==wxID_OK)
       {
          char col[100];