Search found 92 matches

by Anil8753
Thu Sep 17, 2020 4:58 pm
Forum: Platform Related Issues
Topic: save screen as bitmap file mac11
Replies: 5
Views: 106

Re: save screen as bitmap file mac11

Thank you, Stefan helped me resolved this issue. wx3.1.4 (primarily focused on mac11 issues) has the fix. I need to copy the wxBitmap wxWindowDCImpl::DoGetAsBitmap(const wxRect *subrect) const from src/osx/cocoa/utils.mm from 3.1.4 to my version https://groups.google.com/g/wx-dev/c/KDdHl4idchg/m/0RP...
by Anil8753
Wed Sep 16, 2020 6:25 am
Forum: Platform Related Issues
Topic: save screen as bitmap file mac11
Replies: 5
Views: 106

Re: save screen as bitmap file mac11

yes, I do not see wxAssert. Saved bmp is black.
by Anil8753
Tue Sep 15, 2020 11:42 am
Forum: Platform Related Issues
Topic: save screen as bitmap file mac11
Replies: 5
Views: 106

save screen as bitmap file mac11

I was using the following code to capture the screenshot of a wxWindow (on both Windows and MacOS). void CaptureScreenShot(wxWindow* pWin) { wxClientDC bgdc(pWin); int width = bgdc.GetSize().GetWidth(); int height = bgdc.GetSize().GetHeight(); //Create a Bitmap that will later on hold the screenshot...
by Anil8753
Thu Jun 18, 2020 6:21 pm
Forum: C++ Development
Topic: wxCalenderCtrl with wxComboCtrl poup
Replies: 0
Views: 270

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

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

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

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

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

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

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

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

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

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

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

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