+ } else {
+ //BBSFile
+ modelCDMBBGFile* elementBBGFile = dynamic_cast<modelCDMBBGFile*>(element);
+ if(elementBBGFile != NULL)
+ {
+ //create element description
+ description = new wxCDMBBGFileDescriptionPanel(
+ this,
+ elementBBGFile,
+ ID_WINDOW_PROPERTIES,
+ wxT("Description Panel"),
+ wxDefaultPosition,
+ wxSize(600, 400),
+//EED 2017-09-16 Migration wxWidgets 2.8 to 3.0
+#if wxMAJOR_VERSION <= 2
+ 0
+#else
+ wxSHOW_SB_ALWAYS | wxVSCROLL
+#endif
+ );
+ } else {
+ //folder
+ modelCDMFolder* elementFolder = dynamic_cast<modelCDMFolder*>(element);
+ if(elementFolder != NULL)
+ {
+ //create element description
+ description = new wxCDMFolderDescriptionPanel(
+ this,
+ elementFolder,
+ ID_WINDOW_PROPERTIES,
+ wxT("Description Panel"),
+ wxDefaultPosition,
+ wxSize(600, 400),
+//EED 2017-09-16 Migration wxWidgets 2.8 to 3.0
+#if wxMAJOR_VERSION <= 2
+ 0
+#else
+ wxSHOW_SB_ALWAYS | wxVSCROLL
+#endif
+ );
+ } else {
+ //file
+ modelCDMFile* elementFile = dynamic_cast<modelCDMFile*>(element);
+ if(elementFile != NULL)
+ {
+ //create element description
+ description = new wxCDMFileDescriptionPanel(
+ this,
+ elementFile,
+ ID_WINDOW_PROPERTIES,
+ wxT("Description Panel"),
+ wxDefaultPosition,
+ wxSize(600, 400),
+//EED 2017-09-16 Migration wxWidgets 2.8 to 3.0
+#if wxMAJOR_VERSION <= 2
+ 0
+#else
+ wxSHOW_SB_ALWAYS | wxVSCROLL
+#endif
+ );
+ } else {
+ //main if not any
+ //create element description
+ description = new wxCDMMainDescriptionPanel(
+ this,
+ ID_WINDOW_PROPERTIES,
+ wxT("Description Panel"),
+ wxDefaultPosition,
+ wxSize(600, 400),
+//EED 2017-09-16 Migration wxWidgets 2.8 to 3.0
+#if wxMAJOR_VERSION <= 2
+ 0
+#else
+ wxSHOW_SB_ALWAYS | wxVSCROLL
+#endif
+ );
+ }
+ }
+ }