Search found 3089 matches

by PB
Fri Sep 24, 2021 3:41 pm
Forum: C++ Development
Topic: wxBitmapComboBox dropdown list doesn't fit screen
Replies: 6
Views: 207

Re: wxBitmapComboBox dropdown list doesn't fit screen

Yes, I have just noticed the very limited vertical space in the OP's screenshot, based on the number of items visible in the combobox popup (even taskbar is on the left there). In that screenshot, it seems that even the sample main frame does not fit on the screen (buttons on the bottom are not visi...
by PB
Fri Sep 24, 2021 11:16 am
Forum: C++ Development
Topic: wxBitmapComboBox dropdown list doesn't fit screen
Replies: 6
Views: 207

Re: wxBitmapComboBox dropdown list doesn't fit screen

I could not reproduce with few days old master and samples built as PMv2 DPI-aware (scaling at both displays at 125%, the screenshot includes the full height of the display): widgets-bitmap-combobox.png I also tried with the widgets icons added twice, so that there were many more items in the list. ...
by PB
Sun Sep 19, 2021 5:57 pm
Forum: C++ Development
Topic: Programm crashes on Exit
Replies: 14
Views: 406

Re: Programm crashes on Exit

Yes, I was using sizer wrong - repeated the line 4 times for one element. sizer->Add(m_text, wxSizerFlags(1).Expand().Border()); // this line was executed 4 times This is odd, such thing should never happen unnoticed. wxWidgets have a check against a window being added to the sizer twice, resulting...
by PB
Sun Sep 19, 2021 4:28 pm
Forum: C++ Development
Topic: Programm crashes on Exit
Replies: 14
Views: 406

Re: Programm crashes on Exit

The code below creates 300 pickers and 300 labels with no issues, Windows 10, wxWidgets 3.1.6: #include <wx/wx.h> #include <wx/datectrl.h> class MyFrame : public wxFrame { public: MyFrame() : wxFrame(nullptr, wxID_ANY, "Test") { const size_t pickerRowCount = 150; wxScrolledWindow* mainPanel = new wx...
by PB
Sun Sep 19, 2021 4:12 pm
Forum: C++ Development
Topic: Programm crashes on Exit
Replies: 14
Views: 406

Re: Programm crashes on Exit

I could not figure out anything from the stack trace. However, as creating and destroying 40 pickers works just fine; it seems pretty clear that you have a bug somewhere in your code. I would make sure I do not double delete anything. Besides that, you need to reread the code and if it does not help...
by PB
Sun Sep 19, 2021 3:40 pm
Forum: C++ Development
Topic: Programm crashes on Exit
Replies: 14
Views: 406

Re: Programm crashes on Exit

Did you check the stack trace to see where in wxWidgets code it happens?

I also find highly unusual creating multiple controls in the same scope with the same control id.
by PB
Sat Sep 18, 2021 4:04 pm
Forum: Compiler / Linking / IDE Related
Topic: error: 'const wxEventTable wxWindow::sm_eventTable' is protected
Replies: 5
Views: 498

Re: error: 'const wxEventTable wxWindow::sm_eventTable' is protected

I have just downloaded wxWidgets-3.1.5.zip from http://wxwidgets.org/downloads/ and successfully built it using your exact command line with two GCCs: (1) 64-bit v8.1 from mingw-64 installer "x86_64-8.1.0-win32-seh-rt_v6-rev0" and (2) 32-bit v10.3 from MSYS2 package "mingw-w64-i686-gcc". Therefore I...
by PB
Wed Sep 15, 2021 6:16 pm
Forum: C++ Development
Topic: [SOLVED] Window not displaying.
Replies: 6
Views: 811

Re: [SOLVED] Window not displaying.

ONEEYEMAN wrote:
Wed Sep 15, 2021 5:01 pm
PB,
PB wrote:
Wed Sep 15, 2021 7:09 am
That is why "override" specifier is a thing, comes handy once in a while.
Except that its available since C++...
Since C++11, in other words, for about a decade. Even wxWidgets itself, which does not require any Modern C++ features supports it whenever available via wxOVERRIDE.
by PB
Wed Sep 15, 2021 7:09 am
Forum: C++ Development
Topic: [SOLVED] Window not displaying.
Replies: 6
Views: 811

Re: [SOLVED] Window not displaying.

That is why "override" specifier is a thing, comes handy once in a while.
by PB
Thu Sep 09, 2021 6:05 pm
Forum: C++ Development
Topic: Language selection for wxWidgets app via Inno
Replies: 11
Views: 1090

Re: Language selection for wxWidgets app via Inno

My way of creating a new catalogue with POEdit may not be optimal. It is true that creating the catalogue based on a template is displayed prominently in POEdit. But it works for me.

FWIW, I do not remember experiencing any crashes / hang ups with POEdit.
by PB
Thu Sep 09, 2021 6:04 am
Forum: C++ Development
Topic: Language selection for wxWidgets app via Inno
Replies: 11
Views: 1090

Re: Language selection for wxWidgets app via Inno

I may be missing something, creating a translation catalogue with POEdit is super simple (at least on Windows): 1. Launch POEdit 2. From the menubar select "File / New". 3. Pick the language for the translation. 4. Save the new catalogue. 5. In the task list click "Extract from Sources" to display t...
by PB
Mon Sep 06, 2021 6:11 pm
Forum: Compiler / Linking / IDE Related
Topic: cmake linking problems
Replies: 8
Views: 1017

Re: cmake linking problems

I've added adv, but it didn't solved the problem :(. I have no idea why you added aui, but is it not just a matter of wrong library order: The libraries should be passed to the linker in the order "aui adv core base". I am not sure the FindwxWidgets module is smart enough to do that, regardless of ...
by PB
Mon Sep 06, 2021 2:37 pm
Forum: Compiler / Linking / IDE Related
Topic: cmake linking problems
Replies: 8
Views: 1017

Re: cmake linking problems

In wx 3.0, wxDVC is in the Advanced library. I think you need to add "adv" to the list of required wxWidgets components.
by PB
Mon Sep 06, 2021 5:18 am
Forum: Compiler / Linking / IDE Related
Topic: ../../../lib/vc_dll/msw/wx/setup.h does not exist
Replies: 15
Views: 1250

Re: ../../../lib/vc_dll/msw/wx/setup.h does not exist

My guess would be that your projects defines UNICODE. It is usually inherited property (set by General / Character set / Unicode), so it is not visible directly in the text control line with preprocessor definitions.
by PB
Sun Sep 05, 2021 3:15 pm
Forum: Compiler / Linking / IDE Related
Topic: ../../../lib/vc_dll/msw/wx/setup.h does not exist
Replies: 15
Views: 1250

Re: ../../../lib/vc_dll/msw/wx/setup.h does not exist

I think that there is a typo mistake in this file (which occurs several times in this file). For example "cd \ %WXWIN \ %\build\msw" -- but this can not work. IMHO, the correct statement is "cd %WXWIN%\build\msw" - which actually works. You are probably viewing the markdown source instead of it bei...