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.
- Earned some good credits
- Posts: 115
- Joined: Sat Jul 23, 2005 3:52 pm
- Location: Germany
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?
OS: Windows 7, Mac OS X (Panther/Leopard/Snow Leopard), SuSE Linux, Debian (PPC), OpenMoko FreeRunner
Compiler: OpenWatcom, GCC
IDE Makefile based.
RAD My own brewed, Code generation with XSLT and DialogBlocks
- Site Admin
- Posts: 1343
- Joined: Sun Aug 29, 2004 7:14 pm
- Location: Salt Lake City, Utah, USA
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.