]> Creatis software - creaMaracasVisu.git/blobdiff - bbtk/src/bbcreaMaracasVisuPanelButtonContainer.cxx
#2497 creaMaracasVisu Feature New Normal - In container button add the list option
[creaMaracasVisu.git] / bbtk / src / bbcreaMaracasVisuPanelButtonContainer.cxx
index 36954640326f102df186a2fffd347cccd12a383b..3f30cba3e6e3675a08b280fbbdbf51dce3b10a07 100644 (file)
@@ -42,9 +42,17 @@ PanelButtonContainer::Process( )
 {
        ButtonContainerSettings* settings = new ButtonContainerSettings( );
        printf("EED PanelButtonContainer::Process %d\n", bbGetInputIn( ).size() );
-       settings->AddButtons( bbGetInputIn( ) );
+
+       if(bbGetInputType()== "1")
+       {
+//EED-MLER        settings->AddItems( bbGetInputIn() );
+       }
+       else {
+         settings->AddButtons( bbGetInputIn() );
+       }       
+
        
-       PBContainer* panel = new PBContainer( myPanel, settings );
+       PBContainer* panel = new PBContainer( myPanel, settings, bbGetInputType() );
        wxBoxSizer* sizer  = new wxBoxSizer( wxHORIZONTAL );
        sizer->Add( panel, 1, wxEXPAND, 0 );
        this->myPanel->SetSizer(sizer);
@@ -71,7 +79,7 @@ void PanelButtonContainer::CreateWidget( wxWindow* parent )
 void
 PanelButtonContainer::bbUserSetDefaultValues( )
 {
-
+   bbSetInputType("0");
 }
 //===== 
 // Before editing this file, make sure it's a file of your own (i.e.: it wasn't generated from xml description; if so : your modifications will be lost)