]> Creatis software - bbtkGEditor.git/blobdiff - lib/EditorGraphicBBS/bbsWxGUIEditorGraphic/InterpreterBBS.cxx
#3249 Change FontSize - Box graphic scale
[bbtkGEditor.git] / lib / EditorGraphicBBS / bbsWxGUIEditorGraphic / InterpreterBBS.cxx
index e32a02aae21b1eac2eeaf376b78d95d1bc679660..7365e982a8bc716c865e727b989933238e9556ba 100644 (file)
@@ -109,15 +109,18 @@ namespace bbtk
        /// Creates a new black box in current complex box
     void InterpreterBBS::commandNew( const std::string& boxType, const std::string& boxName) // virtual
        {
-               _yGeneral                               = _yGeneral - 30;
                std::string packagename = _factory->GetPackageNameOfaBlackBox(boxType);
                std::string boxType2    = _factory->GetTypeNameOfaBlackBox(boxType);
                int idBox                               = _sceneManager->createGBlackBox( 0,0, packagename ,boxType2);
                _countBoxes++;
-               double px                               = _xGeneral + (_countBoxes%2)*100;
-               double py                               = _yGeneral;
+//EED 2022-01-16
+//             double px                               = _xGeneral + (_countBoxes%2)*100;
+//        _yGeneral                = _yGeneral - 30;
+        double px                = _xGeneral + (_countBoxes%2)*70;
+        _yGeneral                = _yGeneral - 9;
 
-               _sceneManager->configGBlackBox(idBox, px,py,_zGeneral,boxName, false , px+100, py-10 , _zGeneral );
+               double py                               = _yGeneral;
+               _sceneManager->configGBlackBox(idBox, px,py,_zGeneral,boxName, false , px+BOX_WIDTH, py-BOX_HEIGHT , _zGeneral );
        }
        //=========================================================================