- settings->AddButtons( bbGetInputIn( ) );
- PBContainer* panel = new PBContainer( myPanel, settings );
+
+ if(bbGetInputType()== "1")
+ {
+ settings->AddItems(bbGetInputIn());
+
+ }
+ else {
+ settings->AddButtons(bbGetInputIn( ));
+ }
+
+
+ PBContainer* panel = new PBContainer( myPanel, settings, bbGetInputType() );