Search found 2675 matches

by PB
Tue Nov 10, 2020 11:29 am
Forum: Compiler / Linking / IDE Related
Topic: undefined reference to `__imp_InitCommonControls
Replies: 1
Views: 142

Re: undefined reference to `__imp_InitCommonControls

You did not provide any relevant information to help identify the issue, e.g. how did you built wxWidgets and set up the Code::Blocks project nor posted the actual build log. Anyway, the error message seems to come not from the compiler but from the linker. Are those the only two errors you get? Doe...
by PB
Tue Nov 10, 2020 10:59 am
Forum: C++ Development
Topic: Switch layout on button press.
Replies: 53
Views: 1081

Re: Switch layout on button press.

First, you should decide whether you want to delete the other frame or just hide it. If you really want to delete it, make sure the other frame is not created with the frame-to-be-deleted as the parent. Additionally, you should not call delete() inside its method such as an event handler: you should...
by PB
Tue Nov 10, 2020 8:55 am
Forum: C++ Development
Topic: Problem loanding png files on wxWidgets-3.1.4
Replies: 5
Views: 243

Re: Problem loanding png files on wxWidgets-3.1.4

Firstly, I still do not know if it happens for all PNG files or only for some. If there is the wxInitAllImageHandlers(); process terminated with status -1 (0 minute(s), 0 second(s)) If not program say unknown image data format. Well, this is expected. If no image handler is found then the file forma...
by PB
Mon Nov 09, 2020 9:25 pm
Forum: C++ Development
Topic: Problem loanding png files on wxWidgets-3.1.4
Replies: 5
Views: 243

Re: Problem loanding png files on wxWidgets-3.1.4

The compiler very likely has no say in this, the error comes either from wxWidgets or libpng (I assume that on Linux you use the system libpng, not the one shipped with wxWidgets). Are you sure the path encoding is not the issue, i.e., does it still crash even when the path contains only 7-bit ASCII...
by PB
Sun Nov 08, 2020 9:39 am
Forum: C++ Development
Topic: wxFrame draws white background before calling SetBackgrouncColour()
Replies: 2
Views: 219

Re: wxFrame draws white background before calling SetBackgrouncColour()

FWIW, I do not see any flicker on Windows 10, only the black background is always visible.
by PB
Fri Nov 06, 2020 11:33 am
Forum: Platform Related Issues
Topic: wxGrid lines missing
Replies: 10
Views: 385

Re: wxGrid lines missing

Just to be sure, you did try with this PR on the top of the master
https://github.com/wxWidgets/wxWidgets/pull/2026
by PB
Thu Nov 05, 2020 4:50 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

I went through the steps from the beginning to the actual built of the project. I did exactly what you are saying (with a couple of minor deviations), but I am sorry to say, I could not make it work. I see. Anyway, I would have to know: 1. What "deviations" you made. 2. What exactly did not work. W...
by PB
Thu Nov 05, 2020 2:47 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

I have PMs turned off. I think you can say that here. I can take a harsh critic even in public. ;)
by PB
Thu Nov 05, 2020 6:42 am
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

FYI: My experience with "MONOLITHIC=1" and "MONOLITHIC=0" is once you change the setting you need to delete the wxWidgets source code to be safe. I have never needed to delete wxWidets source file. The build using GCC makefile should not affect affect anything outside WXWIN/build/msw/gcc_* and WXWI...
by PB
Wed Nov 04, 2020 7:14 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

Sorry for not spotting the typo sooner. I actually tried CodeBlocks first, it looks great but I could not get it running since I couldn't figure out how to deal with all the numerous settings, so I ended up with CodeLite. And here I though my guide would be understandable to everyone. Out of curiosi...
by PB
Wed Nov 04, 2020 4:12 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

There is an interesting detail I'd like to share which, I think, is CodeLite IDE specific (a bug? a feature?). Remember, in CodeLite we need to specify WXCFG in the Environment variables? WXCFG:=gcc_dll\mswud //(or WXCFG:=gcc_dll\mswu) I assume the colon after WXCFG is just a typo in the post and y...
by PB
Wed Nov 04, 2020 1:53 pm
Forum: Platform Related Issues
Topic: [Solved] Error when trying to use Edge backend for wxWebView
Replies: 8
Views: 275

Re: [Solved] Error when trying to use Edge backend for wxWebView

Actually, AFAIK the application should not rely on an Edge being installed and instead using its own installer, just as doublemax wrote.
by PB
Wed Nov 04, 2020 11:17 am
Forum: Platform Related Issues
Topic: GUI appearance changed
Replies: 4
Views: 307

Re: GUI appearance changed

This is how it looks in a wxWidgets project generated by C::B's project wizard
cb-resource-file.png
cb-resource-file.png (30.9 KiB) Viewed 291 times
Yours may have a different name but its extension should still be ".rc".
by PB
Wed Nov 04, 2020 10:35 am
Forum: Platform Related Issues
Topic: GUI appearance changed
Replies: 4
Views: 307

Re: GUI appearance changed

Your application is missing its manifest, or the manifest lacks statement about compatibility with common controls v6. You need to put #include "wx/msw/wx.rc" in your resource.rc file. Actually, looking at the screenshot it seems you somehow do not include your resource.rc file in your project any m...
by PB
Tue Nov 03, 2020 9:58 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

FWIW I am familiar only with MSVS and Code::Blocks but I tried CodeLite v14.0.2 (your CodeLite version is also old?) and I did not have to add the two Windows libraries, it worked out of the box. The last command line was for the Static Debug build (WXCFG=gcc_lib/mswud) for the wxWidgets project (wx...