]> Creatis software - bbtk.git/blobdiff - packages/wx/src/bbwxCommandButton.cxx
New widget pipeline processing : should be almost ok
[bbtk.git] / packages / wx / src / bbwxCommandButton.cxx
index ca8ac024b7ee6d43798526212bb89b543e7f4a7b..b56228f3d35c5f6209299166a72f6bd3f0b83b20 100644 (file)
@@ -2,8 +2,8 @@
   Program:   bbtk
   Module:    $RCSfile: bbwxCommandButton.cxx,v $
   Language:  C++
-  Date:      $Date: 2008/11/24 15:45:51 $
-  Version:   $Revision: 1.12 $
+  Date:      $Date: 2008/11/25 11:31:03 $
+  Version:   $Revision: 1.13 $
 =========================================================================*/
 
 /* ---------------------------------------------------------------------
@@ -178,13 +178,18 @@ namespace bbwx
     lstColour.push_back(0.75);
     lstColour.push_back(0.75);
     bbSetInputColour(lstColour);
+    bbSetOutputWidget(0);
   }
   
   
   void CommandButton::Process() 
   { 
-    UpdateColour();
-    UpdateLabel();
+    CommandButtonWidget* w = (CommandButtonWidget*)bbGetOutputWidget();
+    if (w) 
+      {
+       UpdateColour();
+       UpdateLabel();
+      }
   }
   
   void CommandButton::UpdateColour()