]> Creatis software - creaMaracasVisu.git/blobdiff - lib/maracasVisuLib/src/interface/wxWindows/widgets/creaButtonContainer/view/listWx.cxx
#2516 creaMaracasVisu Feature New Normal - creaPanelButtonContainer ListPanel with...
[creaMaracasVisu.git] / lib / maracasVisuLib / src / interface / wxWindows / widgets / creaButtonContainer / view / listWx.cxx
index c7cfc56aa189a9aa2b9c5160372542351099224b..32d101deac3b937e106529a7aa81183689b8770d 100644 (file)
@@ -47,6 +47,7 @@ namespace creaButtonContainer
                        this->SetSizer(sizer);
 
                        listBox = new wxListBox(this,-1);
+                       m_functorEnabled = true;
 
                        std::cout << "is ListBox"<< listBox->GetId()<< std::endl;
                //      this->Connect( -1,wxEVT_COMMAND_CHOICE_SELECTED,
@@ -131,16 +132,11 @@ namespace creaButtonContainer
                {
                        if(!this->IsFunctorEnabled())
                                return;
+                       else{
                        try
                        {
                                std::cout<< "MLER | ListWx::ListEvent( wxListEvent& event )" << std::endl;
 
-                       //      wxString itemNom = this->GetString(this->GetSelection());
-
-                       //      std::string itemNomC = std::string(itemNom.mb_str());
-
-                               //this->functor->Call(itemNomC);
-
                                int iSelection;
                                iSelection = listBox->GetSelection();
 
@@ -158,6 +154,7 @@ namespace creaButtonContainer
                                    << "ButtonContainerController::ButtonEvent( wxCommandEvent& event ) exception: "
                                    << e.what( ) << std::endl;
                        }//hctac
+                       }
                }
                // ----------------------------------------------------------------------------------