{
wxBoxSizer *sizerDialog = new wxBoxSizer(wxVERTICAL);
- wxStaticText *text = new wxStaticText(this, -1, _T("Input Ports"));
+ wxStaticText *text = new wxStaticText(this, -1, wxT("Input Ports"));
+ wxFont font(11, wxDEFAULT, wxNORMAL, wxBOLD);
+ text->SetFont(font);
std::vector<GPortModel*> lstInputs = _model->getInputPorts();
- wxGridSizer *sizer = new wxGridSizer(lstInputs.size(),3,5,5);
+ wxFlexGridSizer *sizer = new wxFlexGridSizer(lstInputs.size(),3,5,5);
for(int i = 0;i<lstInputs.size();i++)
{
GPortModel* port = lstInputs[i];
- wxStaticText *lblName = new wxStaticText(this, -1, std2wx(port->getBBTKName()),wxDefaultPosition,wxSize(80,30));
- wxStaticText *lblType = new wxStaticText(this, -1, std2wx(port->getBBTKType()),wxDefaultPosition,wxSize(150,30));
- wxTextCtrl *txtValue = new wxTextCtrl(this, -1, _T(""),wxDefaultPosition,wxSize(50,15));
+ wxStaticText *lblName = new wxStaticText(this, -1, std2wx(port->getBBTKName()),wxDefaultPosition,wxSize(100,20));
+ wxStaticText *lblType = new wxStaticText(this, -1, std2wx(port->getBBTKType()),wxDefaultPosition,wxSize(230,20));
+ wxTextCtrl *txtValue = new wxTextCtrl(this, -1, _T(""),wxDefaultPosition,wxSize(90,25));
if(port->getValue()!="")
{
_lstTypes.push_back(lblType);
_lstValues.push_back(txtValue);
- sizer->Add(lblName,0,wxEXPAND,5);
- sizer->Add(lblType,0,wxCENTRE|wxEXPAND,5);
- sizer->Add(txtValue,0,wxEXPAND,5);
+ sizer->Add(lblName,1,wxEXPAND,5);
+ sizer->Add(lblType,1,wxCENTRE|wxEXPAND,5);
+ sizer->Add(txtValue,1,wxEXPAND,5);
}
wxBoxSizer *buts = new wxBoxSizer(wxHORIZONTAL);
buts->Add(okButton,0,wxCENTRE|wxEXPAND,5);
buts->Add(closeButton,0,wxCENTRE|wxEXPAND,5);
- sizerDialog->Add(text,0,wxALIGN_TOP,10);
- sizerDialog->AddSpacer(5);
- sizerDialog->Add(sizer,0,wxALIGN_CENTER,10);
- sizerDialog->Add(buts,0,wxALIGN_CENTER | wxTOP | wxBOTTOM,10);
+ sizerDialog->AddSpacer(10);
+ sizerDialog->Add(text,0,wxALIGN_TOP|wxALIGN_CENTER);
+ sizerDialog->AddSpacer(15);
+ sizerDialog->Add(sizer,0,wxALIGN_CENTER);
+ sizerDialog->Add(buts,0,wxALIGN_CENTER | wxTOP | wxBOTTOM);
SetSizer(sizerDialog);