this->authortc = new wxStaticText(propertiesPanel, wxID_ANY, crea::std2wx(this->blackBox->GetAuthors()));
wxButton* pAuthorbt = new wxButton(propertiesPanel, ID_BUTTON_SET_AUTHOR, wxT("Change"));
pAuthorbt->SetToolTip(wxT("Update the author/s of the package."));
- pAuthorsz->Add(this->authortc, 1, wxALIGN_CENTER_VERTICAL, 0);
- pAuthorsz->Add(pAuthorbt, 0, wxALIGN_CENTER | wxLEFT, 10);
+ pAuthorsz->Add(this->authortc, 1, wxALIGN_CENTER, 0);
+ pAuthorsz->Add(pAuthorbt, 0, wxALIGN_CENTER_VERTICAL | wxLEFT, 10);
// description
wxBoxSizer* pDescriptionsz = new wxBoxSizer(wxHORIZONTAL);
this->descriptiontc = new wxStaticText(propertiesPanel, wxID_ANY, crea::std2wx(this->blackBox->GetDescription()));
wxButton* pDescriptionbt = new wxButton(propertiesPanel, ID_BUTTON_SET_DESCRIPTION, wxT("Change"));
pDescriptionbt->SetToolTip(wxT("Update the description of the project."));
- pDescriptionsz->Add(this->descriptiontc, 1, wxALIGN_CENTER_VERTICAL, 0);
- pDescriptionsz->Add(pDescriptionbt, 0, wxALIGN_CENTER | wxLEFT, 10);
+ pDescriptionsz->Add(this->descriptiontc, 1, wxALIGN_CENTER, 1);
+ pDescriptionsz->Add(pDescriptionbt, 0, wxALIGN_CENTER_VERTICAL | wxLEFT, 10);
// categories
wxBoxSizer* pCategoriessz = new wxBoxSizer(wxHORIZONTAL);
this->categoriestc = new wxStaticText(propertiesPanel, wxID_ANY, crea::std2wx(this->blackBox->GetCategories()));
wxButton* pCategoriesbt = new wxButton(propertiesPanel, ID_BUTTON_SET_CATEGORY, wxT("Change"));
pCategoriesbt->SetToolTip(wxT("Update the categories of the project."));
- pCategoriessz->Add(this->categoriestc, 1, wxALIGN_CENTER_VERTICAL, 0);
- pCategoriessz->Add(pCategoriesbt, 0, wxALIGN_CENTER | wxLEFT, 10);
+ pCategoriessz->Add(this->categoriestc, 1, wxALIGN_CENTER, 0);
+ pCategoriessz->Add(pCategoriesbt, 0, wxALIGN_CENTER_VERTICAL | wxLEFT, 10);
propertiesGridSizer->Add(pAuthor, 0, wxALIGN_RIGHT | wxALIGN_CENTER_VERTICAL);
propertiesGridSizer->Add(pAuthorsz, 1, wxEXPAND);
propertiesGridSizer->AddGrowableCol(1,1);
- propertiesPanelSizer -> Add(propertiesGridSizer, 1, wxEXPAND);
+ propertiesPanelSizer -> Add(propertiesGridSizer, 1, wxEXPAND | wxALL, 5);
propertiesPanel->SetSizer(propertiesPanelSizer);
propertiesPanelSizer->Fit(propertiesPanel);
- propertiesBox->Add(propertiesPanel, 0, wxALL, 5);
+ propertiesBox->Add(propertiesPanel, 1, wxEXPAND, 5);
sizer->Add(propertiesBox, 0, wxEXPAND | wxALL, 10);