Developer forums (C::B DEVELOPMENT STRICTLY!) > Development

What is the earliest version of wxWidgets that is supported building CB?

(1/1)

stahta01:
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);

--- End code ---

mandrav:
wx2.6 is still supported so, yes, submit a patch.

stahta01:

--- Quote from: mandrav on May 08, 2007, 07:05:18 pm ---wx2.6 is still supported so, yes, submit a patch.

--- End quote ---

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

Navigation

[0] Message Index

Go to full version