Search found 3082 matches

by PB
Wed Sep 15, 2021 6:16 pm
Forum: C++ Development
Topic: [SOLVED] Window not displaying.
Replies: 6
Views: 157

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: 157

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: 611

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: 611

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: 587

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: 587

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: 793

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: 793

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...
by PB
Tue Aug 31, 2021 6:45 am
Forum: C++ Development
Topic: wxBitMap error
Replies: 6
Views: 702

Re: wxBitMap error

TheGates wrote:
Mon Aug 30, 2021 8:27 pm
...
the path is correct.
...
The path may be correct but doing this is generally a bad idea. Relative paths depend on the CWD which may not be what you expect. The canon way is to use wxStandardPaths to obtain the full absolute path.
by PB
Mon Aug 30, 2021 7:56 am
Forum: Compiler / Linking / IDE Related
Topic: c4996 errors (warnings)
Replies: 7
Views: 557

Re: c4996 errors (warnings)

The warnings will always be there when an "unsafe" function is referenced. Just suppress the warnings in your project settings and be done with it.

IIRC, the __w64 "error" is not a build error but rather an IntelliSense one, its cause has been removed from the master just recently.
by PB
Thu Aug 26, 2021 5:06 pm
Forum: C++ Development
Topic: Convert wxListItem to a class inherited from wxListItem
Replies: 2
Views: 526

Re: Convert wxListItem to a class inherited from wxListItem

An alternative to what doublemax wrote, used when you already store the data on your own, is to use virtual list (wxLC_VIRTUAL). However, the virtual mode can be used only when the listctrl is in the report view (wxLC_REPORT).
by PB
Sat Aug 21, 2021 2:49 pm
Forum: Compiler / Linking / IDE Related
Topic: Path in error doesn't exist on my system
Replies: 3
Views: 1094

Re: Path in error doesn't exist on my system

Since the compiler prefix in your library folder is vc14x , you seem to be using the prebuilt dynamic binaries. In this case, you should use the "props" method of setting up the MSVC project, see the official documentation and/or you can take a look at my step-by-step guide . If you still want to us...
by PB
Sun Aug 15, 2021 3:26 pm
Forum: Platform Related Issues
Topic: Number of RadioButtons on MSW limited?
Replies: 11
Views: 1745

Re: Number of RadioButtons on MSW limited?

Whether the issue is a window handle limit per process or total, windows heap limit, a bug in wxWidgets or your application the answer is always the same and simple: Do not create thousands of controls at once! There is no reason to do that and doing it indicates a failure in the design of your appl...
by PB
Fri Aug 13, 2021 6:38 pm
Forum: C++ Development
Topic: wxCommandEvent get name of Control
Replies: 6
Views: 1303

Re: wxCommandEvent get name of Control

If you want the control that triggered the object, you need what wxEvent::GetEventObject() returns. But wanting a control name is not that common in an event handler, why do you want it? BTW, a wxControl has a class name but it also has a user settable name, which is set to the class name by default.