wxTaskBarIcon problem in Mac OS
|Reported by:||TNikolay||Owned by:||csomor|
When I try to use wxTaskBarIcon to adding status icon to Mac OS "tray area" (sorry don't know how it exactly called in mac os). I get assert - can't create window with null parent and wxTaskBarIcon does not work at all. I have changed
wxTaskBarIconWindow(wxTaskBarIconImpl *taskBarIconImpl) : wxWindow(NULL,-1) to wxTaskBarIconWindow(wxTaskBarIconImpl *taskBarIconImpl) : wxWindow(wxTheApp->GetTopWindow(),-1)
I am not sure that this way is correct, but after this changes it works (not perfect:().
Also example sample/statusbar does not work, it seems there is problem with defines in code...
I use Mac OS 10.5.6 x64, and wxWidgets trunk compiled as
../configure --disable-shared --enable-static --enable-unicode --enable-compat28 --with-cocoa --with-macosx-version-min=10.5 --with-macosx-sdk=/Developer/SDKs/MacOSX10.5.sdk CFLAGS="-arch i386" CXXFLAGS="-arch i386" CPPFLAGS="-arch i386" LDFLAGS="-arch i386" OBJCFLAGS="-arch i386" OBJCXXFLAGS="-arch i386" --enable-debug
Change History (8)
Changed 7 years ago by TNikolay
comment:6 Changed 5 years ago by vadz
- Resolution set to outdated
- Status changed from accepted to closed