User forums > Using Code::Blocks
Problem when generating C::B with wxWidgets 3.1.4 found on git
(1/1)
gd_on:
As wxwidgets 3.1.4 is not far from beeing published, I try to work with it, only for testing until now.
They have made recent changes, at least in event.h and now wxPaintEvent is no more public.
So, it's a problem when generating C::B, at least in main.cpp, at line 2683 (svn 11957).
Is it a bad idea in wxWidgets or something C::B has to modify and adapt itself ... I don't know.
gd_on
Miguel Gimenez:
3.1.4 is due for october, see https://github.com/wxWidgets/wxWidgets/milestones
The wxPaintEvent and the ProcessEvent in main.cpp:2683 can be replaced with a call to Update().
There is another issue in watchesdlg.cpp:106, the constructor for wxPGWindowList without arguments has been removed. Looking at the removed code the line must be changed to:
--- Code: ---wxPGWindowList const list(NULL);
--- End code ---
See commit https://github.com/wxWidgets/wxWidgets/commit/f2f9cbe619601fd71f2c5c0dc29796267144322d#diff-c075e089ea383fff6a40ef29c0c30bfb
I have compiled the whole workspace (in MSW) and there are no more compilation issues
gd_on:
OK, nice if there is a workaround on MSW.
You said that :
--- Quote ---3.1.4 is due for october,
--- End quote ---
as mentioned in your link. But on another "official" link : https://trac.wxwidgets.org/roadmap , the date is really different : 10 feb 2020 : already exceeded for 10 days, but this is usual.
Where is the truth :(
Wait and see ...
gd_on
PS : how do you use this call to Update() ?
Miguel Gimenez:
--- Quote ---Where is the truth :(
--- End quote ---
The release rate is about one version every ten months, so I think february is too premature.
--- Quote ---PS : how do you use this call to Update() ?
--- End quote ---
Just remove the two lines with the event-related code and call Update() instead
--- Code: --- wxBusyCursor useless;
// wxPaintEvent e;
// ProcessEvent(e);
Update();
for (unsigned int i = 0; i < files.GetCount(); ++i)
success &= OpenGeneric(files[i]);
--- End code ---
Navigation
[0] Message Index
Go to full version