Search found 89 matches

by Anil8753
Thu Jun 18, 2020 6:21 pm
Forum: C++ Development
Topic: wxCalenderCtrl with wxComboCtrl poup
Replies: 0
Views: 67

wxCalenderCtrl with wxComboCtrl poup

========== UPDATE ========= Issue is not with only wxCalenderCtrl, we can reproduce this issue by placing wxTextCtrl on wxComboPopup. wxTextCtrl never gets the focus, I can not type anything. I have a wxCancelnder control that is added to the wxComboPopup as a child. I used UseAltPopupWindow() funct...
by Anil8753
Thu Jun 18, 2020 12:16 pm
Forum: C++ Development
Topic: Combined date and time picker
Replies: 17
Views: 2248

Re: Combined date and time picker

Did someone tried it on Mac, UseAltPopupWindow() does not seem to work on Mac. It has the same Mouse Capture issue that we see with wxPopupTranseintWindow if we place a wxTextCtrl on it. The focus issue seems to be fixed by calling UseAltPopupWindow() before calling SetPopupControl(m_popup) ; Edit F...
by Anil8753
Tue May 12, 2020 7:14 am
Forum: C++ Development
Topic: wxFrame bring to front
Replies: 8
Views: 2363

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

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

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

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

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

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

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

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

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

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

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

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

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...