News:

Accounts with zero posts and zero activity during the last months will be deleted periodically to fight SPAM!

Main Menu

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

Started by stahta01, May 08, 2007, 04:58:34 PM

Previous topic - Next topic

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

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);
C Programmer working to learn more about C++.
On Windows 10 64 bit and Windows 11 64 bit.
--
When in doubt, read the CB WiKi FAQ. [url="http://wiki.codeblocks.org"]http://wiki.codeblocks.org[/url]

mandrav

Be patient!
This bug will be fixed soon...

stahta01

Quote from: mandrav on May 08, 2007, 07:05:18 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
C Programmer working to learn more about C++.
On Windows 10 64 bit and Windows 11 64 bit.
--
When in doubt, read the CB WiKi FAQ. [url="http://wiki.codeblocks.org"]http://wiki.codeblocks.org[/url]