]> Creatis software - crea.git/blobdiff - lib/creaDevManagerLib/wxCDMMainDescriptionPanel.cpp
#3125 creaFeature New Normal - branch changeWx28to30 compilation with wxWidgets3
[crea.git] / lib / creaDevManagerLib / wxCDMMainDescriptionPanel.cpp
index dbe66c116321f947e495993af7eb2e5942909713..1b9c970ce4732aa52a8332b8222243bc65a14bdc 100644 (file)
@@ -73,13 +73,16 @@ bool wxCDMMainDescriptionPanel::Create(
     long style
 )
 {
-  wxPanel::Create(parent, id, pos, size, style);
+//EED 2017-09-16 Migration wxWidgets 2.8 to 3.0
+#if wxMAJOR_VERSION <= 2
+       wxPanel::Create(parent, id, pos, size, style);
+#else
+       wxScrolledWindow::Create(parent, id, pos, size, style);
+#endif
   CreateControls();
   //to scroll
   this->FitInside(); // ask the sizer about the needed size
   this->SetScrollRate(5, 5);
-
-  
   return TRUE;
 }