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

Do you have a typical platform dependent issue you're battling with ? Ask it here. Make sure you mention your platform, compiler, and wxWidgets version.
Anil8753
Experienced Solver
Experienced Solver
Posts: 80
Joined: Sat Jan 16, 2016 5:57 am

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

Postby Anil8753 » Wed Jan 09, 2019 7:35 am

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

Code: Select all

           HWND hwnd = ::FindWindow(L"#32770", L"Select Files");
           SendMessage(hwnd, WM_CLOSE, 0, 0);


But I did not find the way to achieve on the MacOS. Basically, I have very limited knowledge of Mac world.

ONEEYEMAN
Part Of The Furniture
Part Of The Furniture
Posts: 2834
Joined: Sat Apr 16, 2005 7:22 am
Location: USA, Ukraine

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

Postby ONEEYEMAN » Wed Jan 09, 2019 6:21 pm

Hi,
Looking at this, I don't think there is a way.

You can try to check the wxWidgets testing code and see if its possible.

Thank you.


Return to “Platform Related Issues”

Who is online

Users browsing this forum: No registered users and 3 guests