Code::Blocks Forums

Developer forums (C::B DEVELOPMENT STRICTLY!) => Development => Topic started by: stahta01 on May 08, 2007, 04:58:34 pm

Title: What is the earliest version of wxWidgets that is supported building CB?
Post by: stahta01 on May 08, 2007, 04:58:34 pm
What is the earliest version of wxWidgets that is supported building Code::Blocks?
I just had an issues testing wxWidgets 2.6.1 under windows and want to know if that is still supported.

Problem in wxPropertyGrid file odcombo.cpp, if it is still supported, I will submit patch to fix it.

Tim S

Back port of wxPropertyGrid 1.2.7 on file odcombo.cpp
Code
Index: src/sdk/propgrid/src/propgrid/odcombo.cpp
===================================================================
--- src/sdk/propgrid/src/propgrid/odcombo.cpp (revision 3942)
+++ src/sdk/propgrid/src/propgrid/odcombo.cpp (working copy)
@@ -30,6 +30,7 @@
 #if wxUSE_COMBOBOX
 
 #ifndef WX_PRECOMP
+    #include "wx/app.h"
     #include "wx/log.h"
 
     #include "wx/button.h"
@@ -3091,7 +3092,13 @@
 
     if ( theme )
     {
+#if wxCHECK_VERSION(2, 8, 0)
         const bool isVista = (::wxGetWinVersion() >= wxWinVersion_6);
+#else
+        int Major = 0;
+        int family = wxGetOsVersion(&Major, NULL);
+        const bool isVista = ((family == wxWINDOWS_NT) && (Major >= 6));
+#endif
 
         if ( isVista )
             m_iFlags |= wxPGCC_BUTTON_STAYS_DOWN;
@@ -3354,7 +3361,13 @@
 
     if ( hTheme )
     {
-        const bool useVistaComboBox = ::wxGetWinVersion() >= wxWinVersion_6;
+#if wxCHECK_VERSION(2, 8, 0)
+        const bool useVistaComboBox = (::wxGetWinVersion() >= wxWinVersion_6);
+#else
+        int Major = 0;
+        int family = wxGetOsVersion(&Major, NULL);
+        const bool useVistaComboBox = ((family == wxWINDOWS_NT) && (Major >= 6));
+#endif
 
         RECT rFull;
         wxCopyRectToRECT(borderRect, rFull);
Title: Re: What is the earliest version of wxWidgets that is supported building CB?
Post by: mandrav on May 08, 2007, 07:05:18 pm
wx2.6 is still supported so, yes, submit a patch.
Title: Re: What is the earliest version of wxWidgets that is supported building CB?
Post by: stahta01 on May 08, 2007, 10:26:25 pm
wx2.6 is still supported so, yes, submit a patch.

The 2.6.3 still works; submitted patch "wx261 does not build CB under windows" https://developer.berlios.de/patch/index.php?func=detailpatch&patch_id=1985&group_id=5358

Tim S