X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=packages%2Fwx%2Fsrc%2FbbwxColourSelector.cxx;h=80cfe680e8d871bbbfa804bacf116c07fae8c192;hb=621819a771d434be46e3f33c5f76edd1cc7df249;hp=341c6e4af3e22c2a591d53ce122da5685b6f0d17;hpb=3ebc59b5e665805d936f11f6e525b3dcde0b8884;p=bbtk.git diff --git a/packages/wx/src/bbwxColourSelector.cxx b/packages/wx/src/bbwxColourSelector.cxx index 341c6e4..80cfe68 100644 --- a/packages/wx/src/bbwxColourSelector.cxx +++ b/packages/wx/src/bbwxColourSelector.cxx @@ -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 <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];