From 952979ff2fe394f9d781d92c23c919fdda854b8e Mon Sep 17 00:00:00 2001 From: Eduardo DAVILA Date: Thu, 28 Mar 2019 15:24:47 +0100 Subject: [PATCH] #3244 bbGEditor Bug New Normal - size of wxTextCtrl conflict in the boxProperties --- .../bbsWxGUIEditorGraphic/wxBlackBoxEditionDialog.cxx | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/lib/EditorGraphicBBS/bbsWxGUIEditorGraphic/wxBlackBoxEditionDialog.cxx b/lib/EditorGraphicBBS/bbsWxGUIEditorGraphic/wxBlackBoxEditionDialog.cxx index 59457f9..dc6ac4c 100644 --- a/lib/EditorGraphicBBS/bbsWxGUIEditorGraphic/wxBlackBoxEditionDialog.cxx +++ b/lib/EditorGraphicBBS/bbsWxGUIEditorGraphic/wxBlackBoxEditionDialog.cxx @@ -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()) ); -- 2.47.1