]> Creatis software - crea.git/blobdiff - lib/creaDevManagerLib/wxCDMAppliDescriptionPanel.cpp
Feature #1711 CreaDevManager application implementation
[crea.git] / lib / creaDevManagerLib / wxCDMAppliDescriptionPanel.cpp
index 710d1eefdc1bc344fcd192bcb89a75d7095ec16b..9f818515305b4d9c6f4b5f24d9ef68fbe4e01887 100644 (file)
@@ -80,13 +80,11 @@ bool wxCDMAppliDescriptionPanel::Create(
 )
 {
   wxPanel::Create(parent, id, pos, size, style);
-
+  this->appli = appli;
+  CreateControls();
   // this part makes the scrollbars show up
   this->FitInside(); // ask the sizer about the needed size
   this->SetScrollRate(5, 5);
-
-  this->appli = appli;
-  CreateControls();
   return TRUE;
 }
 
@@ -160,6 +158,11 @@ void wxCDMAppliDescriptionPanel::CreateControls()
 
       //help icon
       wxButton* pApplicationHlp = new wxButton(propertiesPanel, wxID_ANY, wxT("?"), wxDefaultPosition, wxDefaultSize, wxBU_EXACTFIT);
+      pApplicationHlp->Enable(false);
+      tt = "When this application is included in the CMakeLists file, the\nfollowing line is included in the CMakeList.txt file in the\nappli folder:\n"
+          "ADD_SUBDIRECTORY(" + applications[i]->GetName() + ")";
+      pApplicationHlp->SetToolTip(crea::std2wx(tt));
+
       propertiesGridSizer -> Add(pApplicationHlp, 0, wxEXPAND | wxALIGN_CENTER);
     }