Search found 175 matches

by Natulux
Wed Apr 03, 2019 12:31 pm
Forum: C++ Development
Topic: wxWebView with Chromium backend
Replies: 25
Views: 716

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 Natulux
Wed Apr 03, 2019 9:17 am
Forum: C++ Development
Topic: wxWebView with Chromium backend
Replies: 25
Views: 716

Re: wxWebView with Chromium backend

The problem is maintenance. Once included in wxWidgets, it will require core dev to make sure that it always works. But there are many wxWidgets library (wxSQLite3 for example) that have maintainer(s) but aren't part of wx and we use them extensively. So if anyone picks the project, am sure communi...
by Natulux
Wed Apr 03, 2019 8:24 am
Forum: C++ Development
Topic: wxWebView with Chromium backend
Replies: 25
Views: 716

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. Silly me! You are right. [EDIT]: But why I was so focused on this thing: I still can't c...
by Natulux
Wed Apr 03, 2019 6:43 am
Forum: C++ Development
Topic: wxWebView with Chromium backend
Replies: 25
Views: 716

Re: wxWebView with Chromium backend

Hi, Because PB just cloned TcT2K repository and switched the branch appropriately. ;-) BTW, I believe the actual WebView code is able to do RunScript() with return value. It just a Chromium that doesn't support it (yet?). I thought I did that aswell, but whenever I fork TcT2k's wxWidgets, github ju...
by Natulux
Tue Apr 02, 2019 1:25 pm
Forum: C++ Development
Topic: wxWebView with Chromium backend
Replies: 25
Views: 716

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 Natulux
Tue Apr 02, 2019 11:43 am
Forum: C++ Development
Topic: wxWebView with Chromium backend
Replies: 25
Views: 716

Re: wxWebView with Chromium backend

First, try a fresh start with a source tree and build outside the source directory. Thanks for describing further. I am almost certain, that I already fail on downloading the right repository. When I get the repo (from github) from TcT2k directly, the solution is not complete and cmake complains ab...
by Natulux
Tue Apr 02, 2019 7:22 am
Forum: C++ Development
Topic: wxWebView with Chromium backend
Replies: 25
Views: 716

Re: wxWebView with Chromium backend

Did you use the newest cef-version in your test? ( 3.3282.1735.g1e5b631 ) No, I did use the one CMake automatically downloads and installs. However, I do not think it has any effect on your linker error with wxWidgets' declared string.... I used CMake (CMake-GUI) because it is the simplest way to b...
by Natulux
Thu Mar 28, 2019 8:00 am
Forum: C++ Development
Topic: wxWebView with Chromium backend
Replies: 25
Views: 716

Re: wxWebView with Chromium backend

Thanks for your input :-) Just a thought: Did you set wxUSE_WEBVIEW_CHROMIUM to 1 (the default seems to be 0)? I tripped over that, but yes, I finally did set the flag. ;-) FWIW, I just tested it and could build and run the sample successfully. I used CMake (checked wxUSE_WEBVIEW_CHROMIUM and set wx...
by Natulux
Wed Mar 27, 2019 2:51 pm
Forum: C++ Development
Topic: wxWebView with Chromium backend
Replies: 25
Views: 716

Re: wxWebView with Chromium backend

Hey guys, this seems to be still an open topic. I tried this myself and for many hours now, but I only got confused so far. There is an open PR for merging wxWebViewChromium into wxWidgets codebase, see https://github.com/wxWidgets/wxWidgets/pull/706 That is probably the closest how you can get for ...
by Natulux
Tue Mar 19, 2019 1:15 pm
Forum: C++ Development
Topic: Center Dialog On Screen
Replies: 4
Views: 100

Re: Center Dialog On Screen

The wxGenericMessageDialog does use the TopWindow as well and also ignores the CenterOnScreen(). That's strange. Because i tested it and it worked for me. Strange indeed. I was testing with wxWidgets 3.1.1 in vs2015 with Window10x64 and the little frame is opened without a parent with mysplash->Sho...
by Natulux
Fri Mar 15, 2019 12:26 pm
Forum: C++ Development
Topic: Center Dialog On Screen
Replies: 4
Views: 100

Re: Center Dialog On Screen

Under Windows wxMessageDialog is a native control which is always displayed centered on its parent. And if you pass NULL as parent, wx will take the fist toplevel window it finds as parent. That explains it. It feels a little strange, because the constructor even takes a wxPoint, but then ignores i...
by Natulux
Fri Mar 15, 2019 10:37 am
Forum: C++ Development
Topic: Center Dialog On Screen
Replies: 4
Views: 100

Center Dialog On Screen

Hey guys, I want my application to send a message to the user on start under a certain condition and I would like to have that message in the center of my screen. Problem is, that there can (but must not) be a little frame in the corner already. And since this is the first frame created, it is the T...
by Natulux
Wed Mar 06, 2019 7:14 am
Forum: C++ Development
Topic: PopupMenu parent and events
Replies: 11
Views: 247

Re: PopupMenu parent and events

It's a wild guess, but i would try to use CallAfter() to call ShowContextMenu() instead of from inside another event handler. https://docs.wxwidgets.org/trunk/classwx_evt_handler.html#a63c7351618fd77330d80a250b3719519 I used CallAfter in Http-event-handler if (resource.Upper().StartsWith("ICONRIGHT...
by Natulux
Tue Mar 05, 2019 2:16 pm
Forum: C++ Development
Topic: PopupMenu parent and events
Replies: 11
Views: 247

Re: PopupMenu parent and events

I'd be more interested in the initial case (without any workarounds). But i won't have time to take a closer look into this before the end of the week. I was about to state that this should be reproducible with the code I provided and using a wxKeyEvent, but when I tested this, I actually couldn't ...
by Natulux
Tue Mar 05, 2019 7:22 am
Forum: C++ Development
Topic: PopupMenu parent and events
Replies: 11
Views: 247

Re: PopupMenu parent and events

No, the parent class is derived from a wxFrame, just to be able to give a parent pointer to the TransientPopupWindow. I don't even show it. The TransientPopupWindow is exactly as I posted it, it contains a wxPanel (I kept it from the sample, because I know it can capture events that a bare frame can...