X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=lib%2FcreaDevManagerLib%2FwxCDMLibDescriptionPanel.cpp;h=4dec780e7faf18e1cf673e4e15c6e088e3008d18;hb=dd9de710df141a074f10d0cab27b217425ecab20;hp=039c45a37cfd78b55f68bf8ebb9ec2b964a87b4c;hpb=71c071fbb1e2af618f6caa489351b966e1a54b1a;p=crea.git diff --git a/lib/creaDevManagerLib/wxCDMLibDescriptionPanel.cpp b/lib/creaDevManagerLib/wxCDMLibDescriptionPanel.cpp index 039c45a..4dec780 100644 --- a/lib/creaDevManagerLib/wxCDMLibDescriptionPanel.cpp +++ b/lib/creaDevManagerLib/wxCDMLibDescriptionPanel.cpp @@ -78,12 +78,11 @@ bool wxCDMLibDescriptionPanel::Create( ) { wxPanel::Create(parent, id, pos, size, style); + this->lib = lib; + CreateControls(); // this part makes the scrollbars show up this->FitInside(); // ask the sizer about the needed size this->SetScrollRate(5, 5); - - this->lib = lib; - CreateControls(); return TRUE; } @@ -157,6 +156,11 @@ void wxCDMLibDescriptionPanel::CreateControls() //help icon wxButton* pLibraryHlp = new wxButton(propertiesPanel, wxID_ANY, wxT("?"), wxDefaultPosition, wxDefaultSize, wxBU_EXACTFIT); + pLibraryHlp->Enable(false); + tt = "When this library is included in the CMakeLists file, the\nfollowing line is included in the CMakeList.txt file in the lib\nfolder:\n" + "ADD_SUBDIRECTORY(" + libraries[i]->GetName() + ")"; + pLibraryHlp->SetToolTip(crea::std2wx(tt)); + propertiesGridSizer -> Add(pLibraryHlp, 0, wxEXPAND | wxALIGN_CENTER); }