]> Creatis software - bbtkGEditor.git/commitdiff
#3244 bbGEditor Bug New Normal - size of wxTextCtrl conflict in the boxProperties vtk8itk4wx3-mingw64 vtk8itk5wx3-mingw64
authorEduardo DAVILA <davila@ei-ed-606.creatis.insa-lyon.fr>
Thu, 28 Mar 2019 14:24:47 +0000 (15:24 +0100)
committerEduardo DAVILA <davila@ei-ed-606.creatis.insa-lyon.fr>
Thu, 28 Mar 2019 14:24:47 +0000 (15:24 +0100)
lib/EditorGraphicBBS/bbsWxGUIEditorGraphic/wxBlackBoxEditionDialog.cxx

index 59457f923e1fa856df5bdcc11253f8c4e19d5258..dc6ac4cfe167863ccfc60478032f49783878c144 100644 (file)
@@ -66,7 +66,8 @@ namespace bbtk
        //=========================================================================
 
        wxBlackBoxEditionDialog::wxBlackBoxEditionDialog(wxGUIEditorGraphicBBS *parent,GBlackBoxModel *model)
-               :wxDialog(parent,wxID_ANY,_T(""), wxDefaultPosition, wxSize(1200, 1200),wxDEFAULT_DIALOG_STYLE | wxRESIZE_BORDER) 
+//             :wxDialog(parent,wxID_ANY,_T(""), wxDefaultPosition, wxSize(1200, 1200),wxDEFAULT_DIALOG_STYLE | wxRESIZE_BORDER) 
+               :wxDialog(NULL,wxID_ANY,_T(""), wxDefaultPosition, wxSize(1200, 1200),wxDEFAULT_DIALOG_STYLE | wxRESIZE_BORDER) 
        {
                _model=model;
                _parent = parent;
@@ -144,9 +145,11 @@ namespace bbtk
                        sizer->AddGrowableRow(i);
                        GPortModel              *port       = lstInputs[i];
                        std::string              type           = port->getBBTKType();
-                       wxStaticText    *lblName        = new wxStaticText(scrollWin, -1, std2wx(port->getBBTKName()),wxDefaultPosition,wxSize(100,25));
+                       wxStaticText    *lblName        = new wxStaticText(scrollWin, -1, std2wx(port->getBBTKName()),wxDefaultPosition,wxDefaultSize);
                        wxStaticText    *lblType        = new wxStaticText(scrollWin, -1, std2wx(type),wxDefaultPosition,wxSize(250,25));
-                       wxTextCtrl              *txtValue   = new wxTextCtrl(scrollWin, -1, _T(""),wxDefaultPosition,wxSize(300,25));
+                       wxTextCtrl              *txtValue   = new wxTextCtrl(scrollWin, -1, _T(""),wxDefaultPosition,wxDefaultSize);
+
+
 
                        lblName->SetToolTip(  std2wx(port->getBBTKDescription()) );
                        txtValue->SetToolTip( std2wx(port->getBBTKDescription()) );