]> Creatis software - bbtk.git/blobdiff - packages/wx/src/bbwxRadioButton.cxx
*** empty log message ***
[bbtk.git] / packages / wx / src / bbwxRadioButton.cxx
index 6527cfa4719ad3da196593ce9af52fa639756750..0b6a040b9057da660d9a0130b02937b7574e3d13 100644 (file)
@@ -3,8 +3,8 @@
   Program:   bbtk
   Module:    $RCSfile: bbwxRadioButton.cxx,v $
   Language:  C++
-  Date:      $Date: 2008/02/11 14:47:12 $
-  Version:   $Revision: 1.1 $
+  Date:      $Date: 2008/06/10 19:19:49 $
+  Version:   $Revision: 1.5 $
                                                                                 
   Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de
   l'Image). All rights reserved. See Doc/License.txt or
@@ -40,9 +40,9 @@ namespace bbwx
                wxString title,
                std::vector<wxString> lstIn )
     :
-    wxPanel( parent, -1)
+    wxPanel( parent, -1) ,
+    mBox(box)
   {
-
     wxPanel *panel     = this;
     MAX_RADIOBUTTON = lstIn.size();
     int i;
@@ -94,10 +94,10 @@ namespace bbwx
        }
     }
     sizer->AddGrowableCol(0);
-
     panel->SetSizer(sizer);
-    panel->SetAutoLayout(true);
-    panel->Layout();
+
+//    panel->SetAutoLayout(true);
+//    panel->Layout();
 
   }
   //-------------------------------------------------------------------------
@@ -139,7 +139,7 @@ namespace bbwx
   //--------------------------------------------------------------------------
 
 
-  BBTK_USER_BLACK_BOX_IMPLEMENTATION(RadioButton,bbtk::WxBlackBox);
+  BBTK_BLACK_BOX_IMPLEMENTATION(RadioButton,bbtk::WxBlackBox);
 
 
   void RadioButton::bbUserConstructor() 
@@ -192,6 +192,7 @@ namespace bbwx
                          bbtk::std2wx(bbGetInputTitle()),
                          lstIn );
 
+   bbSetOutputOut( bbGetInputIn() );
    bbSetOutputWidget( w );
 
   }