]> Creatis software - crea.git/blobdiff - lib/creaDevManagerLib/wxCDMCMakeListsDescriptionPanel.cpp
Feature #1711 CreaDevManager application implementation
[crea.git] / lib / creaDevManagerLib / wxCDMCMakeListsDescriptionPanel.cpp
index 9b61ae241ebf8633d66f55bbbab831fa77495074..ea0d465b08fd266d7d2ce4e614e4f6c8b973fb47 100644 (file)
@@ -75,6 +75,9 @@ bool wxCDMCMakeListsDescriptionPanel::Create(
   wxPanel::Create(parent, id, pos, size, style);
   this->cMakeLists = makefile;
   CreateControls();
+  // this part makes the scrollbars show up
+  this->FitInside(); // ask the sizer about the needed size
+  this->SetScrollRate(5, 5);
   return TRUE;
 }
 
@@ -91,11 +94,11 @@ void wxCDMCMakeListsDescriptionPanel::CreateControls()
       returnLnk->SetWindowStyle(wxNO_BORDER);
       returnLnk->SetToolTip(crea::std2wx("Return to " + parents[parents.size()-1-i]->GetName() + "."));
       linksSizer->Add(returnLnk, 0, wxALIGN_CENTER_VERTICAL | wxLEFT | wxRIGHT, 5);
-      if (i < (int)(parents.size())-1)
-        {
-          linksSizer->Add(new wxStaticText(this,wxID_ANY, wxT("/")), 0, wxALIGN_CENTER, 0);
-        }
+      linksSizer->Add(new wxStaticText(this,wxID_ANY, wxT("/")), 0, wxALIGN_CENTER, 0);
     }
+
+  linksSizer->Add(new wxStaticText(this, wxID_ANY, crea::std2wx(this->cMakeLists->GetName())), 0, wxALIGN_CENTER, 0);
+
   sizer->Add(linksSizer, 0, wxALIGN_CENTER | wxALL, 5);
 
   //Header