Search found 1937 matches

by PB
Fri Apr 05, 2019 8:54 pm
Forum: C++ Development
Topic: Loading Bitmaps from resource file
Replies: 6
Views: 131

Re: Loading Bitmaps from resource file

Why don't you just step into the bitmap loading code to see where and why it goes wrong? It should be quick and easy.
by PB
Thu Apr 04, 2019 12:28 pm
Forum: C++ Development
Topic: wxNativeWindow host app
Replies: 9
Views: 211

Re: wxNativeWindow host app

I have no knowledge at all of OSX. The code I posted was only for Windows and it works (tested with MSVC). The errors you posted look as if you did not include <windows.h>? Assuming you are building the code on Windows, try putting #include <wx/msw/wrapwin.h> after all the includes you have. BTW, wi...
by PB
Thu Apr 04, 2019 9:04 am
Forum: C++ Development
Topic: wxNativeWindow host app
Replies: 9
Views: 211

Re: wxNativeWindow host app

FWIW I tried to do a quick and dirty C++/wxWidgets equivalent of code of the linked window. My observations: 1. The way of finding HWND from PID does not seem to work for UWP apps, e.g. Calc.exe on W10, which do not really have HWNDs 2 I still fail to see usefulness of this. Code (using notepad.exe ...
by PB
Thu Apr 04, 2019 7:21 am
Forum: C++ Development
Topic: wxNativeWindow host app
Replies: 9
Views: 211

Re: wxNativeWindow host app

Looking at the code in the linked video, all it does is reparent the calc window to the window of "host" application? How would you do it for processes which have multiple "main" windows? I am still not sure what use there is? I am also not sure wxNativeWindow would be good here, seems it was intend...
by PB
Thu Apr 04, 2019 5:54 am
Forum: C++ Development
Topic: wxNativeWindow host app
Replies: 9
Views: 211

Re: wxNativeWindow host app

What do you mean by "embedding another application"? I never saw such a thing on Windows, unless we are talking about a plugin or good old OLE... Can you give an example of this?

AFAIK, wxNativeWindow is for embedding windows, not processes.
by PB
Wed Apr 03, 2019 1:11 pm
Forum: C++ Development
Topic: wxWebView with Chromium backend
Replies: 25
Views: 793

Re: wxWebView with Chromium backend

It seems to me, that cef is not easy to integrate, given how many errors I already made with a project, that is supposed to work out of the box. If you believe there are bugs/issues with the PR (aside the already-fixed wxWidgets-wide CMake issue with static CRT linkage), I believe you are welcome t...
by PB
Wed Apr 03, 2019 10:36 am
Forum: C++ Development
Topic: wxWebView with Chromium backend
Replies: 25
Views: 793

Re: wxWebView with Chromium backend

BTW: Have you tried the prebuild binaries for CEF? Actually, wxWidgets's CMake project downloads the binary from the very same site. It is like magic and one of the reasons I tested that PR with CMake only. From what I read, building CEF3 is quite demanding process and it would not be wise to integ...
by PB
Wed Apr 03, 2019 7:13 am
Forum: C++ Development
Topic: wxWebView with Chromium backend
Replies: 25
Views: 793

Re: wxWebView with Chromium backend

But I am hesitant to try this, because I think it is missing some files again. Eg., I cant find the "wxmsw31u_webviewchromium.lib" in that repo... What do you mean? No repository should contain built libraries. I would make sure to clone TcT2k's fork to a new folder to prevent mixing files from dif...
by PB
Tue Apr 02, 2019 4:41 pm
Forum: C++ Development
Topic: wxWebView with Chromium backend
Replies: 25
Views: 793

Re: wxWebView with Chromium backend

(I am talking about CMake build as described in my previous post) So I just checked the chromium build. The webview chromium sample is a separate project in generated wxWidgets solution, however, the source file is just the webview sample where the webviewsample_chromium project has wxWEBVIEW_SAMPLE...
by PB
Tue Apr 02, 2019 12:24 pm
Forum: C++ Development
Topic: wxWebView with Chromium backend
Replies: 25
Views: 793

Re: wxWebView with Chromium backend

One last thing: You wrote, that RunScript() with the Chromium backend does not return values. Is that according to your knowledge still the case? I did not "wrote it", it is a documented limitation of the back end and to my best knowledge it is still the case. I tried looking into it but it appeare...
by PB
Tue Apr 02, 2019 7:52 am
Forum: C++ Development
Topic: wxWebView with Chromium backend
Replies: 25
Views: 793

Re: wxWebView with Chromium backend

First, try a fresh start with a source tree and build outside the source directory. I tried to follow your steps, used the cmake GUI and a custom flag "wxUSE_WEBVIEW_CHROMIUM to 1". I did not do such a step, I just checked the wxUSE_WEBVIEW_CHROMIUM option under wxUSE tree (having checked "Grouped" ...
by PB
Tue Apr 02, 2019 7:39 am
Forum: Compiler / Linking / IDE Related
Topic: How to include external DLL files in exe file
Replies: 3
Views: 155

Re: How to include external DLL files in exe file

From what I understood, building static library (shared=0) includes all needed DLLs in the exe file. Or is it just for internal files? "RUNTIME_LIB=static" means that the compiler's CRT is linked statically (not sure if it even works for GCC) and obviously, you are expected to build your applicatio...
by PB
Tue Apr 02, 2019 6:10 am
Forum: C++ Development
Topic: Issue saving bitmaps to file
Replies: 6
Views: 140

Re: Issue saving bitmaps to file

I believe the problem is Alpha. I would expect that the wxBitmap to wxImage conversion would take care of any kind of possible transparency in the bitmap. What is the original bitmap format: BMP (if so does wxBitmap::HasMask() return true?, PNG...? I also think I helped a poster here recently with ...
by PB
Mon Apr 01, 2019 10:01 pm
Forum: C++ Development
Topic: Issue saving bitmaps to file
Replies: 6
Views: 140

Re: Issue saving bitmaps to file

The code looks OK, I am assuming you are running debug build of wxWidgets which would assert if the bitmap or image were invalid. My guess would be that the issue is somewhere else than in the posted code (assuming you did not omit anything relevant) and you would not be able to reproduce it in an a...
by PB
Mon Apr 01, 2019 9:03 pm
Forum: C++ Development
Topic: Strings containing emojis
Replies: 5
Views: 209

Re: Strings containing emojis

Regarding XNView MP displaying the characters properly on W7, it seems that it works even when I set its UI font there to Times New Roman.
xnviewmp-w7.png
xnviewmp-w7.png (77.72 KiB) Viewed 100 times
Who knows how Qt draws the strings there, I doubt XNView MP uses native controls for its views...