Page 1 of 1

Differences with modal dialogs

Posted: Fri Jan 02, 2015 8:02 pm
by lollisoft

I have experienced modal dialog issues on Windows. When showing a modal dialog using this code, the OnIdle handler is called compared to OS X where it is not called:

Code: Select all

        wxMessageDialog dialog(NULL, msg, windowTitle, wxOK);
Does passing a parent window stopping OnIdle handling, or should I work with a flag?

Thanks, Lothar

Re: Differences with modal dialogs

Posted: Mon Jan 05, 2015 8:30 pm
by tierra
I would rather look for alternative ways to handle any processing you have in your idle event handler, and moving it to something more reliable, like a timer. Using idle events is rarely the appropriate choice. What are you processing in your idle event handler?

If that route doesn't appeal to you, you should probably be more specific about what version of wxWidgets you're using, which port (specifically important on OS X is whether it's wxMac, wxOSX/Cocoa, or wxOSX/Carbon), and what version of OS X you're on.