Author Topic: What is the earliest version of wxWidgets that is supported building CB?  (Read 4515 times)

Offline stahta01

  • Lives here!
  • ****
  • Posts: 7582
    • My Best Post
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);
« Last Edit: May 08, 2007, 05:06:09 pm by stahta01 »
C Programmer working to learn more about C++ and Git.
On Windows 7 64 bit and Windows 10 64 bit.
--
When in doubt, read the CB WiKi FAQ. http://wiki.codeblocks.org

Offline mandrav

  • Project Leader
  • Administrator
  • Lives here!
  • *****
  • Posts: 4315
    • Code::Blocks IDE
wx2.6 is still supported so, yes, submit a patch.
Be patient!
This bug will be fixed soon...

Offline stahta01

  • Lives here!
  • ****
  • Posts: 7582
    • My Best Post
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
« Last Edit: May 08, 2007, 10:46:18 pm by stahta01 »
C Programmer working to learn more about C++ and Git.
On Windows 7 64 bit and Windows 10 64 bit.
--
When in doubt, read the CB WiKi FAQ. http://wiki.codeblocks.org