Search found 2675 matches

by PB
Tue Nov 03, 2020 9:15 pm
Forum: Compiler / Linking / IDE Related
Topic: debug vs release wxWidgets compilations with CodeLite
Replies: 21
Views: 487

Re: debug vs release wxWidgets compilations with CodeLite

Now about uxtheme and oleacc that PB pointed out to. I see these two DLLs in the C:\Windows\System32. So I don't understand how CodeLite missed them. The DLLs have nothing to do with this, you somehow need to tell the linker about them. These files are liboleacc.a and libuxtheme.a found in the lib ...
by PB
Tue Nov 03, 2020 3:07 pm
Forum: Compiler / Linking / IDE Related
Topic: debug vs release wxWidgets compilations with CodeLite
Replies: 21
Views: 487

Re: debug vs release wxWidgets compilations with CodeLite

cadol_wx wrote:
Tue Nov 03, 2020 2:01 pm
Any idea, what's wrong now?
You are missing some standard Windows libraries: uxtheme and oleacc
by PB
Mon Nov 02, 2020 3:03 pm
Forum: C++ Development
Topic: WxSplitterWindow problem
Replies: 19
Views: 395

Re: WxSplitterWindow problem

The issue has been just fixed in the master:
https://github.com/wxWidgets/wxWidgets/ ... 9071479b94
by PB
Sat Oct 31, 2020 7:52 pm
Forum: C++ Development
Topic: How to open a separate window with a button click?
Replies: 4
Views: 127

Re: How to open a separate window with a button click?

You just create a new frame / dialog in the event handler of the button click.
by PB
Sat Oct 31, 2020 6:00 pm
Forum: C++ Development
Topic: Help with ListCtrl SortItems Please
Replies: 9
Views: 310

Re: Help with ListCtrl SortItems Please

BTW, not that it is relevant to the topic but perhaps for the future reference: The example above does not build as 64-bit on Windows, where long is 32-bit. The type of the last parameter of MyCompareFunction() should be changed from long to wxIntPtr , similarly in the cast in the m_item_list->SortI...
by PB
Fri Oct 30, 2020 10:16 pm
Forum: C++ Development
Topic: WxSplitterWindow problem
Replies: 19
Views: 395

Re: WxSplitterWindow problem

The root of the issue is explained in this thread, with more information in the ticket I linked before. In other words, calling wxFrame::SetToolBar() for a toolbar which was not created with wxFrame::CreateToolBar().

As I wrote before, the sample does not do that so it is irrelevant.
by PB
Fri Oct 30, 2020 8:27 pm
Forum: C++ Development
Topic: WxSplitterWindow problem
Replies: 19
Views: 395

Re: WxSplitterWindow problem

Calling SetToolBar() is the issue in this thread but AFAICT, the toolbar sample does not call SetToolBar() with a non-NULL toolbar.
by PB
Fri Oct 30, 2020 5:36 pm
Forum: C++ Development
Topic: ipc assert in reading
Replies: 9
Views: 391

Re: ipc assert in reading

I am not familiar with wxSockets but looking at the stack trace: Are you using more than one thread and if so, are you sure you are not accessing any GUI objects from the non-GUI thread?
by PB
Fri Oct 30, 2020 5:33 pm
Forum: C++ Development
Topic: WxSplitterWindow problem
Replies: 19
Views: 395

Re: WxSplitterWindow problem

I have an application that is based on 3.1.4 and I'm creating 2 toolbars - one manually with "new" and one with CreateToolbar(). Both toolbars works as expected - no huge toolbars is visible. The issue manifests on MSW since 3.1.3. AFAIK, a wxFrame can manage only one toolbar at most, see e.g. my c...
by PB
Fri Oct 30, 2020 1:30 pm
Forum: C++ Development
Topic: WxSplitterWindow problem
Replies: 19
Views: 395

Re: WxSplitterWindow problem

The issue can be manifested simply like this #include <wx/wx.h> #include <wx/artprov.h> class MyApp : public wxApp { public: bool OnInit() override { wxFrame* frame = new wxFrame(nullptr, wxID_ANY, "Test ToolBar"); wxToolBar* toolBar = #if 1 new wxToolBar(frame, wxID_ANY); #else frame->CreateToolBar...
by PB
Fri Oct 30, 2020 10:42 am
Forum: General Development
Topic: Display std::out and std::err
Replies: 2
Views: 230

Re: Display std::out and std::err

What did you try so far? I expect the first was this https://docs.wxwidgets.org/trunk/classwx_stream_to_text_redirector.html Obviously, among else, this assumes that the output happens in the same process. I am not familiar with embedding Python and such, so the obvious question is: Is there no way ...
by PB
Fri Oct 30, 2020 10:01 am
Forum: C++ Development
Topic: WxSplitterWindow problem
Replies: 19
Views: 395

Re: WxSplitterWindow problem

doublemax wrote:
Fri Oct 30, 2020 9:55 am
Use CreateToolBar() to create the toolbar and don't call SetToolBar().
This works but I still think there is a bug / regression in wxWidgets which should be reported: Do you agree?
by PB
Fri Oct 30, 2020 9:44 am
Forum: C++ Development
Topic: WxSplitterWindow problem
Replies: 19
Views: 395

Re: WxSplitterWindow problem

I think this is may be a bug. In the master (3.1.5), the toolbar is way too tall. This #include <wx/wx.h> #include <wx/artprov.h> #include <wx/splitter.h> class MyFrame : public wxFrame { public: MyFrame() : wxFrame(nullptr, wxID_ANY, "Test", wxDefaultPosition, wxSize(600, 400)) { // Menu wxMenuBar*...
by PB
Tue Oct 27, 2020 8:25 am
Forum: Compiler / Linking / IDE Related
Topic: Can't compile minimal.cpp on VS2019
Replies: 11
Views: 425

Re: Can't compile minimal.cpp on VS2019

Did you try the project I provided? At least from what I see, source.cpp in your new project is still empty, so there can be no main function. But that may be because you hardcoded its path to your local path (C:\Users\lands\source\repos\) so it cannot be there. Also, you still did not tell us which...
by PB
Tue Oct 27, 2020 8:03 am
Forum: Compiler / Linking / IDE Related
Topic: Can't compile minimal.cpp on VS2019
Replies: 11
Views: 425

Re: Can't compile minimal.cpp on VS2019

For some reason, the project you posted cannot be used on a different computer. The only configuration that has the subsystem set to Windows and not Console is Release x64: is that the one that fails to build? The default configuration for the project is Debug x86. Additionally, Source.cpp file is e...