Search found 87 matches

by Anil8753
Tue May 12, 2020 7:14 am
Forum: C++ Development
Topic: wxFrame bring to front
Replies: 8
Views: 2191

Re: wxFrame bring to front

It worked. The following works fine on windows (tested extensively on XP, 7 and 8 / 8.1), not so sure how it is on Linux / other platforms. I'd like to claim the credit for writing it, but I can't - I've tried to acknowledge all those who contributed part of the solution ... bool CWindowUtilities::F...
by Anil8753
Fri May 08, 2020 1:54 pm
Forum: C++ Development
Topic: how to develop a autocomplete listview popup
Replies: 3
Views: 267

Re: how to develop a autocomplete listview popup

wxTextEntry auto complete functionality is useless as it is auto complete not suggestions box. Here all the filtered results must have same string wherever is typed in text control. There is no support of custom filtering like ignore case, substring comparisons.
by Anil8753
Wed Apr 08, 2020 7:22 am
Forum: C++ Development
Topic: close wxFrame if user click outside the frame
Replies: 4
Views: 113

Re: close wxFrame if user click outside the frame

wxPopupTransientWindow has issues with many other controls. Please read https://groups.google.com/forum/#!topic/wx-users/wBAelVe6NwQ Looks like wxPopupTransientWindow is meant for hosting wxStaticText, wxStaticBitmap, wxButton like control only. But capturing wxEVT_ACTIVATE on wxFrame seems to be us...
by Anil8753
Wed Apr 08, 2020 6:32 am
Forum: C++ Development
Topic: close wxFrame if user click outside the frame
Replies: 4
Views: 113

close wxFrame if user click outside the frame

I need to implement the same behavior as wxPopupTransientWindow, close the wxFrame if a user click outside the wxFrame.
I cannot use wxPopupTransientWindow because it doesn't allow sub controls (wxRadio button, wxChoice, wxSpinCtrl etc) to act on the mouse events.
by Anil8753
Tue Apr 07, 2020 3:29 pm
Forum: C++ Development
Topic: wxRadioButton on wxPopupTransientWindow causing Assert failure
Replies: 1
Views: 87

wxRadioButton on wxPopupTransientWindow causing Assert failure

I have a wxPopupTransientWindow and I need to place wxRadioButton on wxPopupTransientWindow using sizers. But I see there an Assert failure if I do this. I found wxCHECK_RET( tlw, wxT("radio button outside of TLW?") ); assert fails. I do not know what is the reason for putting this assert and stop u...
by Anil8753
Tue Apr 07, 2020 3:19 pm
Forum: C++ Development
Topic: Entering text into a textbox and getting the windows error sound
Replies: 2
Views: 96

Re: Entering text into a textbox and getting the windows error sound

Please call the following inside your event handler
evt.Skip(false); // Stop wxBell sound
by Anil8753
Fri Jan 24, 2020 7:41 am
Forum: Platform Related Issues
Topic: wxWebView under proxy environment
Replies: 1
Views: 157

wxWebView under proxy environment

I am loading a webpage in wxWebView. It is working fine under normal circumstances but it fails to load the webpage under proxy environment.

error message on navigation:
“Navigation to the webpage was canceled”

I am testing it under windows.
by Anil8753
Wed Jan 09, 2019 7:35 am
Forum: Platform Related Issues
Topic: wxFileDialog::EndModal(int ret) not implemented on both Win and Mac
Replies: 1
Views: 345

wxFileDialog::EndModal(int ret) not implemented on both Win and Mac

My requirement is to close the wxFileDialog programmatically. But looks like though wxFileDialog is derived from the wxDialog, EndModal() is not implemented on both Windows and MacOS. On windows, I found the workaround HWND hwnd = ::FindWindow(L"#32770", L"Select Files"); SendMessage(hwnd, WM_CLOSE,...
by Anil8753
Thu Nov 15, 2018 1:40 pm
Forum: C++ Development
Topic: wxWebView call C++ function from javascript
Replies: 5
Views: 1222

Re: wxWebView call C++ function from javascript

This works well if data is less. If data is more, in KBs or MBs then max url length causes the limitations.
Is there any easy way to pass the large data from Javascript to C++?
by Anil8753
Fri Sep 07, 2018 4:28 pm
Forum: C++ Development
Topic: Open new tab or window wxWebView
Replies: 2
Views: 625

Re: Open new tab or window wxWebView

Yes, you are 100% correct. wxEVT_WEBVIEW_NEWWINDOW event gets fired in this case. I do not know how it didn't work earlier. Maybe strong Beer was the reason. :P
by Anil8753
Fri Sep 07, 2018 12:03 pm
Forum: C++ Development
Topic: Open new tab or window wxWebView
Replies: 2
Views: 625

Open new tab or window wxWebView

in my HTML page, I have window.open(url,'_blank'); If I open my page in the browser and execute the above code, it opens a new tab or new window (depending on the user preference). But I open the same page in wxWebView and execute the above code, nothing happens. I did not find any wxWebViewEvent th...
by Anil8753
Wed Sep 05, 2018 8:45 am
Forum: C++ Development
Topic: WebView based wxWidgets application development
Replies: 3
Views: 669

Re: WebView based wxWidgets application development

https://github.com/wxWidgets/wxWidgets/pull/807 is nice but it will run on Windows10 only. I have to run my application on WIndow7, 8, 8.1, and MacOS > 10.11. https://github.com/wxWidgets/wxWidgets/pull/706 will be my last option if I do not find any other way. ~100MB size and multiprocess architec...
by Anil8753
Wed Sep 05, 2018 3:57 am
Forum: C++ Development
Topic: WebView based wxWidgets application development
Replies: 3
Views: 669

WebView based wxWidgets application development

Hi, I have a huge wxWidgets 3.1 application that runs on both Windows and MacOS. Going forward, I am planning to implement any new UI with HTML/CSS/JS with WebView and backend will be, as usual, C++ layer. I looked into the CEF3 integration with wxWidgets, found it complex especially under macOS als...
by Anil8753
Wed Aug 22, 2018 7:24 am
Forum: Platform Related Issues
Topic: wxDialog is not modal after 3 level on MacOS
Replies: 3
Views: 591

Re: wxDialog is not modal after 3 level on MacOS

Added the minimal.cpp in the original question.
I am not able to find the root cause of the issue. wx3.0 works fine, I can see many changes have been done related to modal event loop.
by Anil8753
Fri Aug 17, 2018 6:06 pm
Forum: Platform Related Issues
Topic: wxDialog is not modal after 3 level on MacOS
Replies: 3
Views: 591

Re: wxDialog is not modal after 3 level on MacOS

I tested on Mac OS 10.11 and 10.13. I am using wxDialog class as base class. If you have Mac machine, may try creating 3 dialog.
It is 64 bit wxWidget dlls