]> Creatis software - crea.git/blobdiff - lib/creaDevManagerLib/wxCDMBlackBoxDescriptionPanel.cpp
Feature #1711
[crea.git] / lib / creaDevManagerLib / wxCDMBlackBoxDescriptionPanel.cpp
index d972925ac645b2de5e84b3eea9b2c9226e46aae7..eb0ed5acf3c391c3cb318739b3cb29c6ba1bb9ea 100644 (file)
@@ -36,6 +36,8 @@
 
 #include "wxCDMMainFrame.h"
 
+#include "wxCDMBlackBoxHelpDialog.h"
+
 #include "creaDevManagerIds.h"
 #include "images/BBIcon64.xpm"
 
@@ -174,6 +176,12 @@ void wxCDMBlackBoxDescriptionPanel::CreateControls()
   //Assign sizer
   SetSizer(sizer);
   sizer->SetSizeHints(this);
+
+  if (((wxCDMMainFrame*)this->GetParent())->isHelp())
+    {
+      wxCDMBlackBoxHelpDialog* helpDialog = new wxCDMBlackBoxHelpDialog(this->GetParent(), this->blackBox, wxID_ANY);
+      helpDialog->Show(true);
+    }
 }
 
 void wxCDMBlackBoxDescriptionPanel::OnBtnReturn(wxCommandEvent& event)