X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=lib%2FcreaDevManagerLib%2FwxCDMMainDescriptionPanel.cpp;h=1b9c970ce4732aa52a8332b8222243bc65a14bdc;hb=refs%2Fheads%2FchangeWx28to30;hp=dbe66c116321f947e495993af7eb2e5942909713;hpb=0cc6a7e002ad79de9453517108d7456fd44ddfdb;p=crea.git diff --git a/lib/creaDevManagerLib/wxCDMMainDescriptionPanel.cpp b/lib/creaDevManagerLib/wxCDMMainDescriptionPanel.cpp index dbe66c1..1b9c970 100644 --- a/lib/creaDevManagerLib/wxCDMMainDescriptionPanel.cpp +++ b/lib/creaDevManagerLib/wxCDMMainDescriptionPanel.cpp @@ -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; }