]> Creatis software - bbtkGEditor.git/blobdiff - lib/EditorGraphicBBS/bbsWxGUIEditorGraphic/wxGEditorTabPanel.cxx
#3213 bbGEditor Feature New Normal - vtk8itk4wx3-mingw64 MACOS
[bbtkGEditor.git] / lib / EditorGraphicBBS / bbsWxGUIEditorGraphic / wxGEditorTabPanel.cxx
index a8e2efb5bdbd7da061e442307e556952a8902752..8ec6907de425efda932d4c5faae9a779cc9bd1c2 100644 (file)
@@ -133,17 +133,19 @@ namespace bbtk
 
           //wxMessageBox(data);
 
-         std::string stdData = crea::wx2std(data);
 
-         //std::cout << "Text drop: '" << stdData << "'" << std::endl;
+
+               int posEndEED=data.find("<EndEED>");
+               wxString data2( data.substr(0,posEndEED) );
+               std::string stdData = crea::wx2std(data2);
 
          if(stdData.substr(0,4) == "box:")
            {
              int posT = stdData.find_first_of(':', 4);
              std::string packageName = stdData.substr(4, posT-4);
              posT = stdData.find_first_not_of(':', posT);
-             std::string boxType = stdData.substr(posT);
-
+             std::string boxType = stdData.substr(posT, data.Len()-posT );
+             
              //std::cout << "box: Package='" << packageName << "' BoxType='" << boxType << "'" <<std::endl;
              /*
                     wxString foo( (data) );
@@ -158,6 +160,8 @@ namespace bbtk
                      result = strtok( NULL, delims );
                      boxType += result;
               */
+           printf("EED wxGEditorTabPanel::OnDropText  <%s>  length %d %d \n", stdData.c_str(), stdData.length(), data.Len() ); 
+           printf("EED wxGEditorTabPanel::OnDropText  <%s>  wxString\n",(const char*)data.mb_str() ); 
              if ( _panelsManager->TryToOpenScriptApplication(packageName,boxType) == false )
                {
                  _sceneManager->createGBlackBox(x,y,packageName, boxType);