//=========================================================================
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;
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()) );